# How to get a user's role?

**URL:** <https://devforum.zoom.us/t/how-to-get-a-users-role/3223>\
**Category:** API and Webhooks\
**Created:** [February 6, 2019, 10:31pm UTC](https://devforum.zoom.us/t/how-to-get-a-users-role/3223 "2019-02-06T22:31:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![navinmishra](https://avatars.discourse-cdn.com/v4/letter/n/858c86/32.png) [@navinmishra](https://devforum.zoom.us/u/navinmishra)\
**Post date:** [February 6, 2019, 10:31pm UTC](https://devforum.zoom.us/t/how-to-get-a-users-role/3223/1 "2019-02-06T22:31:26Z")

</div>

Hi,

When getting a user’s information(using the “me” endpoint), it looks like user’s role is not returned? Specifically, we want to know whether a user is in admin role or not. How to do that?

Thanks in advance and regards

Navin

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [February 7, 2019, 5:41pm UTC](https://devforum.zoom.us/t/how-to-get-a-users-role/3223/2 "2019-02-07T17:41:00Z")

</div>

Hi @navinmishra,

You can use the roles API.

1. [https://api.zoom.us/v2/roles](https://api.zoom.us/v2/roles) - To find the type of role
2. [https://api.zoom.us/v2/roles/{role\_id}/members](https://api.zoom.us/v2/roles/%7Brole_id%7D/members) - To see if the user is an admin for the role.

Let us know if you have any other questions.

Thanks

---

<div class="post-metadata">

**Author:** ![rajeev.pitre](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rajeev.pitre](https://devforum.zoom.us/u/rajeev.pitre)\
**Post date:** [February 7, 2019, 10:43pm UTC](https://devforum.zoom.us/t/how-to-get-a-users-role/3223/3 "2019-02-07T22:43:04Z")

</div>

Thanks for your reply, @michael_p.zoom . What I discovered it that when I use my admin account access token to fetch the members for a role, I get the following error -

{  
“code”: 124,  
“message”: “Invalid access token, does not contain scopes: [role:write:admin, role:read:admin]”  
}

However, when configuring scopes for my app, I don’t see the “role” scopes listed there.  
What am I missing ?

FWIW, I can use the API successfully when I use the api key and api secret using the jwt. But I need to be able to access the api using the access token.

Could you help please ?

Thanks much,  
Rajeev.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [February 8, 2019, 5:23pm UTC](https://devforum.zoom.us/t/how-to-get-a-users-role/3223/4 "2019-02-08T17:23:57Z")

</div>

Hi @rajeev.pitre,

To get admin scopes, your app needs to be an account-level app.

> **[List Roles - Roles - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/roles/roles)**
>
> List Roles on your account
> 
> Scopes: role:read:admin
> 
> Authorization
> 
> Responses
> 
> Send a Test Request

Thanks

---

<div class="post-metadata">

**Author:** ![rajeev.pitre](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rajeev.pitre](https://devforum.zoom.us/u/rajeev.pitre)\
**Post date:** [February 8, 2019, 7:28pm UTC](https://devforum.zoom.us/t/how-to-get-a-users-role/3223/5 "2019-02-08T19:28:22Z")

</div>

Hi @michael_p.zoom,

I believe the app is account level -

 ![23%20AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/f9fd676d663336b0ea3a65162bff51551a7ea644.png)

Thanks,  
Rajeev.

---

<div class="post-metadata">

**Author:** ![rajeev.pitre](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rajeev.pitre](https://devforum.zoom.us/u/rajeev.pitre)\
**Post date:** [February 8, 2019, 7:29pm UTC](https://devforum.zoom.us/t/how-to-get-a-users-role/3223/6 "2019-02-08T19:29:00Z")

</div>

Hi @michael_p.zoom,

Also I do see the roles once I use the api key and secret -

 ![24%20AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/38da45ad46899709cab7674d44d673c52e26d81e.jpeg)

Thanks,  
Rajeev.

---

<div class="post-metadata">

**Author:** ![rajeev.pitre](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rajeev.pitre](https://devforum.zoom.us/u/rajeev.pitre)\
**Post date:** [February 8, 2019, 7:29pm UTC](https://devforum.zoom.us/t/how-to-get-a-users-role/3223/7 "2019-02-08T19:29:43Z")

</div>

Hi @michael_p.zoom,

I also happen to have admin privileges -

 ![22%20AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/5833b593e4e22ecf57a279d842e28262e47962ae.png)

Still, an access token obtained with my privileges doesn’t seem to have access to the “roles” api. Also, I don’t see the necessary scopes listed to be included for my app.

Is there anything else that I’m missing ?

Thanks,  
Rajeev.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Champ](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonathan_champ/32/45_2.png) [@Jonathan\_Champ](https://devforum.zoom.us/u/Jonathan_Champ)\
**Post date:** [February 8, 2019, 7:45pm UTC](https://devforum.zoom.us/t/how-to-get-a-users-role/3223/8 "2019-02-08T19:45:38Z")

</div>

Rather than getting the user’s role, (or as the API calls it: “getting the members of a role”), I would think you care more about the permissions that a user has. Specifically, if you want people who can perform specific actions, then you can retrieve the permissions directly via: [https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userpermission](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userpermission)

---

<div class="post-metadata">

**Author:** ![jhavel.hayes](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jhavel.hayes](https://devforum.zoom.us/u/jhavel.hayes)\
**Post date:** [July 20, 2022, 7:46pm UTC](https://devforum.zoom.us/t/how-to-get-a-users-role/3223/9 "2022-07-20T19:46:19Z")

</div>

Im having this same issue as well. Is this a bug perhaps?

I am account level admin and I dont see role:write:admin role:read:admin in scope.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 27, 2022, 12:46pm UTC](https://devforum.zoom.us/t/how-to-get-a-users-role/3223/10 "2022-07-27T12:46:31Z")

</div>

Hi @jhavel.hayes  
Thanks for reaching out to the Zoom Developer Forum, if you are still having this issue please open up a new topic since this one has been closed  
Thanks  
Elisa
