# Include associated RoleId of user while fetching the all users and single user through API

**URL:** <https://devforum.zoom.us/t/include-associated-roleid-of-user-while-fetching-the-all-users-and-single-user-through-api/25501>\
**Category:** Feature Requests\
**Created:** [July 28, 2020, 7:47pm UTC](https://devforum.zoom.us/t/include-associated-roleid-of-user-while-fetching-the-all-users-and-single-user-through-api/25501 "2020-07-28T19:47:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![connectivity](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@connectivity](https://devforum.zoom.us/u/connectivity)\
**Post date:** [July 28, 2020, 7:47pm UTC](https://devforum.zoom.us/t/include-associated-roleid-of-user-while-fetching-the-all-users-and-single-user-through-api/25501/1 "2020-07-28T19:47:19Z")

</div>

**This is for developer-specific feature requests. For other requests please contact our customer support team.**

**Is your feature request related to a problem? Please describe.**  
I want to get the RoleId of Role which is associated with user while fetching the users , But ‘[https://api.zoom.us/v2/Users’](https://api.zoom.us/v2/Users%E2%80%99) and ‘[https://api.zoom.us/v2/Users/{UserId}](https://api.zoom.us/v2/Users/%7BUserId%7D)’ doesn’t return the RoleId.  
The API ‘[https://api.zoom.us/v2/Users/{UserId}’](https://api.zoom.us/v2/Users/%7BUserId%7D%E2%80%99) returns the Role Name, but we can’t correlate the role name with roleId as role names are not unique.?

**Describe the solution you’d like**  
we want both APIs ‘[https://api.zoom.us/v2/Users’](https://api.zoom.us/v2/Users%E2%80%99) and ‘[https://api.zoom.us/v2/Users/{UserId}](https://api.zoom.us/v2/Users/%7BUserId%7D) should return the RoleId in API response.  
.  
**Additional context**  
The RoleId is basically used for provisioning role-related activities, hence RoleId is an important attribute. However, there is no other API that accepts role\_name as input and returns role-related attributes as role\_name is not unique.

Its a blocker for our project and it will be good if we can get a quick fix for the API.
