I am using the API to test creating/deleting Users. The accounts are created successfully but they are not being removed correctly. I corresponded with Max about this a few months ago, and he spoke to engineering and they said to make sure that I use the “delete” for the action and not “disassociate.” I have using “delete” but I am still having the same issue.
The full error message or issue you are running into.
Please see the screenshots below.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
Authentication: This is an enterprise account so I am use JWT authentication.
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
$response = Invoke-RestMethod -Headers $headers -Uri https://api.zoom.us/v2/users -Body $body -ContentType ‘application/json’ -Method Post
$response = Invoke-RestMethod -Uri https://api.zoom.us/v2/users/$User -Headers $headers -ContentType ‘application/json’ -Method DELETE
How To Reproduce (If applicable)
Steps to reproduce the behavior:
Please see screenshots below for detailed information.
I create the account. This is an enterprise account so I am using “ssoCreate” and “2” for type. The account is created successfully and I can search for it in our user list.
I test deleting the account. No errors returned and it no longer displays in our user list.
Recreate the account using the same email. The message returned is: “The user xxx belong to another account.”
Try to delete the account again but the message returned is “User does not exist.”
The following accounts are now stuck in Zoom limbo somewhere as I cannot recreate nor delete them:
Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.
This is the message I get when trying to create one of the accounts I deleted:
This is the message I get when trying to delete the same account:
Add any other context about the problem here.