# Unable to get RoleId of user while fetching the user

**URL:** <https://devforum.zoom.us/t/unable-to-get-roleid-of-user-while-fetching-the-user/24963>\
**Category:** API and Webhooks\
**Created:** [July 23, 2020, 10:03am UTC](https://devforum.zoom.us/t/unable-to-get-roleid-of-user-while-fetching-the-user/24963 "2020-07-23T10:03:33Z")\
**Posts on this page:** 3\
**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 23, 2020, 10:03am UTC](https://devforum.zoom.us/t/unable-to-get-roleid-of-user-while-fetching-the-user/24963/1 "2020-07-23T10:03:33Z")

</div>

**Description**  
Hi Team,  
I want to get the RoleId of Role which is associated with User, But ‘[https://api.zoom.us/v2/Users](https://api.zoom.us/v2/Users)’ 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)’ returns the Role Name, but how can I correlate the role name with roleId of user’s role?

Can I get the roleId while fetching a single user?  
Is the role name unique across the application?  
Is there any enhancement present for ‘/Users’ API to return the roleId?

---

<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:** [July 27, 2020, 10:45pm UTC](https://devforum.zoom.us/t/unable-to-get-roleid-of-user-while-fetching-the-user/24963/3 "2020-07-27T22:45:23Z")

</div>

Hey @connectivity,

Currently the roleId is not returned from the Get Users endpoints. Feel free to add this as a feature request here: #feature-requests

The Role Name is not unique, you can have multiple roles named the same.

If this helps, you can take a somewhat opposite approach and [List Members in a Role](https://marketplace.zoom.us/docs/api-reference/zoom-api/roles/rolemembers).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 3, 2020, 10:45pm UTC](https://devforum.zoom.us/t/unable-to-get-roleid-of-user-while-fetching-the-user/24963/4 "2020-08-03T22:45:27Z")

</div>

Closed on August 3, 2020, 10:45pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
