Switching my deprovisioning cript over from using the JWT token to the new server-to-server app using OAuth. The OAuth token is working to enumerate the list of users but is failing when trying to delete a user.
The APi shows it needs the scopes
user:write. I’ve added the scope ‘user:write:admin’ to my app but ‘user:write’ is not an available option to select. The only other option I see is ‘user:read:admin’, which I did enable to see if it made any difference.
My role is ‘SecondaryOwner’ which I’ve confirmed has ‘Server-to-server OAuth app’ enabled, as well as all settings under "Zoom for developers’.
The error I’m seeing is “The remote server returned an error: (400) Bad Request.” With a status code=400.
The same code works as is with the JWT token so I believe I’m missing a permission rather than it being a coding error. Anything else I can look at?
I am sorry to get to you so late!
Are you still experiencing this issue?
If so, make sure that you have the proper permissions in your account, not only that you have the Server-to-Server Oauth app enabled in your account, but that you have the proper permissions enabled under User and Permission management
Hope this helps
I am still having the issue. No worries on the response.
What specific permission do I need to look for? My role is OwnerSecondary so I believe my own account has pretty much everything. I have no problem deleting a user from the web portal. The only thing that’s not set under “User and Permission management” is “Bulk delete, unlink, and deactivate”. Would this be considered a bulk delete?
Interesting, I just did a little testing on my end and I was not able to replicate this issue.
I am going to send you a private message and in that message could you please share with me the email associated with your account as well as the appID or the name of the app that you are using to make this API call so I can look into this further?