Pull roles Assigned to Users via REST API

Hi,

  1. I am using /Users endpoint to pull all users while I don’t get roles assigned to each user.
    I have to make /Users/{userId} call to get role name.

Is there any way to get role name with /Users endpoint

  1. Also I am creating user via /Users endpoint but don’t find any option where I can mention that this user should be under which sub account.
    Does this mean whenever I create user using /Users API with Master account details it will always create user under master account ?

Thanks,
-Harshal

Hey @Suryawanshi.Harshal,

Have you tried using our roles endpoint:

https://marketplace.zoom.us/docs/api-reference/zoom-api/roles/roles
https://marketplace.zoom.us/docs/api-reference/zoom-api/roles/rolemembers

The user will be in the Sub Account of the authentication method used. So if Sub Account A JWT or OAuth access_token creates a user, the user will be in Sub Account A.

Please also see the Master Account APIs: https://marketplace.zoom.us/docs/api-reference/master-account-apis/user-apis

Thanks,
Tommy

Thanks Tommy for reply.

Related to Roles, suppose there are 100 roles and then I have to make 100 API calls to fetch members under each role.

Can it be achieve by anymeans with single API call or not hitting 100 API calls.

Also could you please more insights on upper cap for API limits on below endpoints for Enterprise plan-

  • Users
  • Groups
  • Roles

Thanks,
-Harshal

Hey @Suryawanshi.Harshal,

As of now no. We will work on improving this.

Rate limits for all of these are 10 requests per second.

Thanks,
Tommy