Relatively simple question. I’ve been searching Google for a method to change a zoom users role from Member to Admin using the API’s. I’m sure I’m just not seeing the API’s to do this. We’re currently using an off the shelf Okta connector for provisioning, but parts of it are manual so we would like to automate everything including changing roles. So any help would be greatly appreciated!
Hi Paul, yes, this is absolutely doable via the Zoom API! You need to use the Roles API endpoint:
POST /v2/roles/{roleId}/members
Pass the user IDs in the request body:
{ “members”: [{ “id”: “userId” }] }
The default role IDs are the same across all Zoom accounts:
• 0 - Owner
• 1 - Admin
• 2 - Member
So, to promote a user to Admin, just call POST /v2/roles/1/members with their user ID. You’ll need the role:write:admin scope on your app. Full docs here: Accounts APIs - API - Zoom Developer Docs
Note: Avoid using PATCH /users/{userId} with role_name in the body - it returns a 204 success but doesn’t actually update the role. The /roles/{roleId}/members endpoint is the correct way to do it.
Thanks for the recommendation Naeem. I do recall trying this before without any success. My granular scopes for role that I see in the bearer token response are as follows and believe I have what I need: