# Pull roles Assigned to Users via REST API

**URL:** <https://devforum.zoom.us/t/pull-roles-assigned-to-users-via-rest-api/12094>\
**Category:** API and Webhooks\
**Created:** [April 8, 2020, 9:54am UTC](https://devforum.zoom.us/t/pull-roles-assigned-to-users-via-rest-api/12094 "2020-04-08T09:54:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suryawanshi.Harshal](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Suryawanshi.Harshal](https://devforum.zoom.us/u/Suryawanshi.Harshal)\
**Post date:** [April 8, 2020, 9:54am UTC](https://devforum.zoom.us/t/pull-roles-assigned-to-users-via-rest-api/12094/1 "2020-04-08T09:54:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 9, 2020, 7:24pm UTC](https://devforum.zoom.us/t/pull-roles-assigned-to-users-via-rest-api/12094/2 "2020-04-09T19:24:08Z")

</div>

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/roles)  
[https://marketplace.zoom.us/docs/api-reference/zoom-api/roles/rolemembers](https://marketplace.zoom.us/docs/api-reference/zoom-api/roles/rolemembers)

> [@Suryawanshi.Harshal](#):
>
> 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.

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](https://marketplace.zoom.us/docs/api-reference/master-account-apis/user-apis)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![Suryawanshi.Harshal](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Suryawanshi.Harshal](https://devforum.zoom.us/u/Suryawanshi.Harshal)\
**Post date:** [April 10, 2020, 5:11am UTC](https://devforum.zoom.us/t/pull-roles-assigned-to-users-via-rest-api/12094/3 "2020-04-10T05:11:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 10, 2020, 9:48pm UTC](https://devforum.zoom.us/t/pull-roles-assigned-to-users-via-rest-api/12094/4 "2020-04-10T21:48:15Z")

</div>

Hey @Suryawanshi.Harshal,

> [@Suryawanshi.Harshal](#):
>
> Can it be achieve by anymeans with single API call or not hitting 100 API calls.

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

> [@Suryawanshi.Harshal](#):
>
> Also could you please more insights on upper cap for API limits on below endpoints for Enterprise plan-
> 
> - Users
> - Groups
> - Roles

[Rate limits for all of these are 10 requests per second.](https://marketplace.zoom.us/docs/api-reference/rate-limits)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:24pm UTC](https://devforum.zoom.us/t/pull-roles-assigned-to-users-via-rest-api/12094/5 "2020-08-21T20:24:05Z")

</div>

Closed on August 21, 2020, 8:24pm UTC


