# Delete Action is not removing the user's account

**URL:** <https://devforum.zoom.us/t/delete-action-is-not-removing-the-users-account/51112>\
**Category:** API and Webhooks\
**Created:** [May 26, 2021, 5:03pm UTC](https://devforum.zoom.us/t/delete-action-is-not-removing-the-users-account/51112 "2021-05-26T17:03:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![surajan](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@surajan](https://devforum.zoom.us/u/surajan)\
**Post date:** [May 26, 2021, 5:03pm UTC](https://devforum.zoom.us/t/delete-action-is-not-removing-the-users-account/51112/1 "2021-05-26T17:03:29Z")

</div>

**Description**

We are migrating from using AD groups to API for zoom provisioning. While testing deprovisioning using the api, we are able to delete the account. However, when we do a import Job from zoom, an exact duplicate of the deleted account is created with a different userid.

**Error**

There is no error message visible.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**

OAuth

**Which Endpoint/s?**  
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

[https://api.zoom.us/v2/users](https://api.zoom.us/v2/users)

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Request URL / Headers (without credentials) / Body
2. See error

**Screenshots (If applicable)**  
It is difficult to explain using screenshots. an online meeting would be much appreciated and easier to explain if there are any more questions.

**Additional context**  
We are testing the API while the AD group provisioning is still active. Both are in the Prod environment

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [May 27, 2021, 5:22pm UTC](https://devforum.zoom.us/t/delete-action-is-not-removing-the-users-account/51112/2 "2021-05-27T17:22:34Z")

</div>

Hi @surajan,

Thanks for reaching out!

When you reference importing a job from Zoom, are you referring to doing so through the UI using [Azure AD](https://support.zoom.us/hc/en-us/articles/115005887566-Configuring-Zoom-with-Azure#h_b55fa30b-94ce-4b23-81f7-6136846e6ec8)?

The reason I ask, is because our [Technical Support](https://support.zoom.us/hc/en-us/requests/new) team will be best suited to look into this further for you, if you’re seeing duplicate accounts, and they can take a closer look at how your Azure AD integration is provisioned.

Let me know if I’m misunderstanding, though!

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![surajan](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@surajan](https://devforum.zoom.us/u/surajan)\
**Post date:** [May 28, 2021, 12:53am UTC](https://devforum.zoom.us/t/delete-action-is-not-removing-the-users-account/51112/3 "2021-05-28T00:53:27Z")

</div>

Hi Will,

We are using Saviynt as our centralized identity store. The Import job is run through Saviynt as JSON requests. these requests were created using the Zoom API Postman Collection. I don’t believe we are using Azure AD to run these imports.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [May 28, 2021, 5:11pm UTC](https://devforum.zoom.us/t/delete-action-is-not-removing-the-users-account/51112/4 "2021-05-28T17:11:19Z")

</div>

Hi @surajan,

Is it possible to share an example request (minus any PII) so that we can better understand how you’re running this job?

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![surajan](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@surajan](https://devforum.zoom.us/u/surajan)\
**Post date:** [May 28, 2021, 5:26pm UTC](https://devforum.zoom.us/t/delete-action-is-not-removing-the-users-account/51112/5 "2021-05-28T17:26:40Z")

</div>

Will,

Here is The JSON used for the import Job.

```
{
"accountParams": {
	"createUsers": false,
	"adminName": "admin",
	"connection": "acctAuth",
	"processingType": "SequentialAndIterative",
	"statusAndThresholdConfig": {
		"statusColumn": "customproperty13",
		"activeStatus": [
			"active"
		],
		"deleteLinks": false,
		"accountThresholdValue": 30,
		"correlateInactiveAccounts": false,
		"inactivateAccountsNotInFile": false,
		"deleteAccEntForActiveAccounts": true
	},
	"call": {
		"call1": {
			"callOrder": 0,
			"stageNumber": 0,
			"http": {
				"url": "https://api.zoom.us/v2/users?status=inactive",
				"httpHeaders": {
					"Authorization": "${access_token}"
				},
				"httpContentType": "application/json",
				"httpMethod": "GET"
			},
			"listField": "users",
			"keyField": "accountID",
			"colsToPropsMap": {
				"accountID": "id~#~char",
				"name": "email~#~char",
				"displayName": "first_name~#~char",
				"status": "status~#~char",
				"customproperty1": "first_name~#~char",
				"customproperty2": "last_name~#~char",
				"customproperty3": "type~#~char",
				"customproperty4": "pmi~#~char",
				"customproperty5": "timezone~#~char",
				"customproperty6": "verified~#~char",
				"customproperty7": "dept~#~char",
				"customproperty8": "created_at~#~char",
				"customproperty9": "last_login_time~#~char",
				"customproperty10": "last_client_version~#~char",
				"customproperty11": "language~#~char",
				"customproperty12": "phone_number~#~char",
				"customproperty13": "status~#~char"
			},
			"pagination": {
				"page": {
					"pageSizeParam": "page_size",
					"pageSize": 300,
					"pageRecordCount": "completeResponseMap.page_size",
					"pageNumberParam": "page_number",
					"totalCountPath": "completeResponseMap.total_records",
					"firstPageNumber": 1
				}
			}
		},
		"call2": {
			"callOrder": 1,
			"stageNumber": 0,
			"http": {
				"url": "https://api.zoom.us/v2/users?status=pending",
				"httpHeaders": {
					"Authorization": "${access_token}"
				},
				"httpContentType": "application/json",
				"httpMethod": "GET"
			},
			"listField": "users",
			"keyField": "accountID",
			"colsToPropsMap": {
				"accountID": "id~#~char",
				"name": "email~#~char",
				"displayName": "first_name~#~char",
				"status": "status~#~char",
				"customproperty1": "first_name~#~char",
				"customproperty2": "last_name~#~char",
				"customproperty3": "type~#~char",
				"customproperty4": "pmi~#~char",
				"customproperty5": "timezone~#~char",
				"customproperty6": "verified~#~char",
				"customproperty7": "dept~#~char",
				"customproperty8": "created_at~#~char",
				"customproperty9": "last_login_time~#~char",
				"customproperty10": "last_client_version~#~char",
				"customproperty11": "language~#~char",
				"customproperty12": "phone_number~#~char",
				"customproperty13": "status~#~char"
			},
			"pagination": {
				"page": {
					"pageSizeParam": "page_size",
					"pageSize": 300,
					"pageRecordCount": "completeResponseMap.page_size",
					"pageNumberParam": "page_number",
					"totalCountPath": "completeResponseMap.total_records",
					"firstPageNumber": 1
				}
			}
		},
		"call3": {
			"callOrder": 2,
			"stageNumber": 0,
			"http": {
				"url": "https://api.zoom.us/v2/users?status=active",
				"httpHeaders": {
					"Authorization": "${access_token}"
				},
				"httpContentType": "application/json",
				"httpMethod": "GET"
			},
			"listField": "users",
			"keyField": "accountID",
			"colsToPropsMap": {
				"accountID": "id~#~char",
				"name": "email~#~char",
				"displayName": "first_name~#~char",
				"status": "status~#~char",
				"customproperty1": "first_name~#~char",
				"customproperty2": "last_name~#~char",
				"customproperty3": "type~#~char",
				"customproperty4": "pmi~#~char",
				"customproperty5": "timezone~#~char",
				"customproperty6": "verified~#~char",
				"customproperty7": "dept~#~char",
				"customproperty8": "created_at~#~char",
				"customproperty9": "last_login_time~#~char",
				"customproperty10": "last_client_version~#~char",
				"customproperty11": "language~#~char",
				"customproperty12": "phone_number~#~char",
				"customproperty13": "status~#~char"
			},
			"pagination": {
				"page": {
					"pageSizeParam": "page_size",
					"pageSize": 300,
					"pageRecordCount": "completeResponseMap.page_size",
					"pageNumberParam": "page_number",
					"totalCountPath": "completeResponseMap.total_records",
					"firstPageNumber": 1
				}
			}
		}
	}
},
"entitlementParams": {
	"connection": "acctAuth",
	"processingType": "SequentialAndIterative",
	"entTypes": {
		"Groups": {
			"entTypeOrder": 0,
			"entTypeLabels": {
				"customproperty1": "total_members"
			},
			"call": {
				"call1": {
					"callOrder": 0,
					"stageNumber": 0,
					"showJobHistory": true,
					"http": {
						"url": "https://api.zoom.us/v2/groups",
						"httpHeaders": {
							"Authorization": "${access_token}",
							"Accept": "application/json"
						},
						"httpContentType": "application/json",
						"httpMethod": "GET"
					},
					"listField": "groups",
					"keyField": "entitlementID",
					"colsToPropsMap": {
						"entitlementID": "id~#~char",
						"entitlement_value": "id~#~char",
						"customproperty1": "total_members~#~char",
						"description": "name~#~char",
						"displayname": "name~#~char",
						"entitlement_glossary": "name~#~char"
					},
					"disableDeletedEntitlements": true
				}

			}
		}
	}
},
"acctEntParams": {
	"connection": "acctAuth",
	"entTypes": {
		"Groups": {
			"call": {
				"call1": {
					"callOrder": 0,
					"stageNumber": 0,
					"showJobHistory": true,
					"processingType": "httpEntToAcct",
					"http": {
						"httpHeaders": {
							"Authorization": "${access_token}",
							"Accept": "application/json"
						},
						"url": "https://api.zoom.us/v2/groups/${id}/members",
						"httpContentType": "application/json",
						"httpMethod": "GET"
					},
					"listField": "members",
					"entKeyField": "entitlementID",
					"acctIdPath": "id",
					"acctKeyField": "accountID",
					"pagination": {
						"page": {
							"pageSizeParam": "page_size",
							"pageSize": 100,
							"pageRecordCount": "completeResponseMap.page_size",
							"pageNumberParam": "page_number",
							"totalCountPath": "completeResponseMap.total_records",
							"firstPageNumber": 1
						}
					}
				}
			}
		}
	}
}

```

}

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 1, 2021, 11:47pm UTC](https://devforum.zoom.us/t/delete-action-is-not-removing-the-users-account/51112/6 "2021-06-01T23:47:28Z")

</div>

Hey @surajan,

Thanks for providing more info. Looking at those calls, I’m not seeing anything that would deprovision a user. Are you making a call to our [Delete a User API](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userdelete) or something else?

Are you able to provide the JSON request and endpoint that you use when you see this issue?

Further, if you follow the same process outside of Azure, do you see the same issue?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![surajan](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@surajan](https://devforum.zoom.us/u/surajan)\
**Post date:** [June 2, 2021, 1:09pm UTC](https://devforum.zoom.us/t/delete-action-is-not-removing-the-users-account/51112/7 "2021-06-02T13:09:47Z")

</div>

Hi @MaxM ,

We are calling the Delete User request first, then once we get a 204 response, we run that import job. The account gets removed when the delete user request is run, then a duplicate account with a different userid but same credentials gets created when the import job runs.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 4, 2021, 2:04am UTC](https://devforum.zoom.us/t/delete-action-is-not-removing-the-users-account/51112/8 "2021-06-04T02:04:27Z")

</div>

Hey @surajan,

Got it, thanks for clarifying. Please send an email to [developersupport@zoom.us](mailto:developersupport@zoom.us) with a link to this thread. In that email, please include the User ID where you last saw this issue and the name of the app that you are using to authenticate.

I’ll check our logs.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 4, 2021, 12:05pm UTC](https://devforum.zoom.us/t/delete-action-is-not-removing-the-users-account/51112/9 "2021-07-04T12:05:03Z")

</div>

Closed on July 4, 2021, 12:05pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
