# Scopes in Role information api

**URL:** <https://devforum.zoom.us/t/scopes-in-role-information-api/91508>\
**Category:** API and Webhooks\
**Created:** [July 8, 2023, 9:33pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508 "2023-07-08T21:33:09Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![rupinder.goyal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rupinder.goyal/32/49990_2.png) [@rupinder.goyal](https://devforum.zoom.us/u/rupinder.goyal)\
**Post date:** [July 8, 2023, 9:33pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/1 "2023-07-08T21:33:09Z")

</div>

Hi,  
We can set the scope of each setting field in the role settings ( there are 2 options in scope: entire account, custom group). But the scope is not returned when we fetch the role information from the api.  
Is there any way to get it through api?

---

<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 10, 2023, 2:00pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/2 "2023-07-10T14:00:07Z")

</div>

Hi @rupinder.goyal  
Thanks for reaching out to us.  
When you generate the access token, do you see the scope that you are expecting?

---

<div class="post-metadata">

**Author:** ![rupinder.goyal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rupinder.goyal/32/49990_2.png) [@rupinder.goyal](https://devforum.zoom.us/u/rupinder.goyal)\
**Post date:** [July 10, 2023, 2:23pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/3 "2023-07-10T14:23:40Z")

</div>

@elisa.zoom Hi,  
I did not try but I went through the api page , privilege field has its fixed set of strings and there is no other relevant field.

---

<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 10, 2023, 2:39pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/4 "2023-07-10T14:39:57Z")

</div>

Do you mean that you do not get the scopes assigned to certain role when you call the endpoint Get a role?

> **[Zoom Meeting API](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/getRoleInformation)**
>
> API Reference for /docs/api/rest/reference/zoom-api/methods

---

<div class="post-metadata">

**Author:** ![rupinder.goyal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rupinder.goyal/32/49990_2.png) [@rupinder.goyal](https://devforum.zoom.us/u/rupinder.goyal)\
**Post date:** [July 10, 2023, 2:54pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/5 "2023-07-10T14:54:32Z")

</div>

I am talking about the get role information api.  
Yes,it is not in the response schema.

---

<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 10, 2023, 2:59pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/6 "2023-07-10T14:59:01Z")

</div>

I believe this is expected, because the scopes will vary according to each application

---

<div class="post-metadata">

**Author:** ![rupinder.goyal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rupinder.goyal/32/49990_2.png) [@rupinder.goyal](https://devforum.zoom.us/u/rupinder.goyal)\
**Post date:** [July 10, 2023, 4:10pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/7 "2023-07-10T16:10:56Z")

</div>

@elisa.zoom But for each role and each privilege, there can be only 1 scope, which can be returned through the api.

---

<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 10, 2023, 6:44pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/8 "2023-07-10T18:44:44Z")

</div>

@rupinder.goyal could you point me to what endpoint you are calling please?

---

<div class="post-metadata">

**Author:** ![rupinder.goyal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rupinder.goyal/32/49990_2.png) [@rupinder.goyal](https://devforum.zoom.us/u/rupinder.goyal)\
**Post date:** [July 23, 2023, 6:43pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/9 "2023-07-23T18:43:47Z")

</div>

I am calling /roles/{roleId} @elisa.zoom

---

<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 24, 2023, 3:06pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/10 "2023-07-24T15:06:54Z")

</div>

Hi @rupinder.goyal  
When I call the endpoint Get Role information, I get something that looks like this:

```auto
{
    "id": "----",
    "name": "Developer",
    "description": "Access to Marketplace Dashboard\n",
    "type": "common",
    "total_members": 1,
    "privileges": [
        "AccountProfile:Edit",
        "AccountProfile:Read",
        "AccountSetting:Edit",
        "AccountSetting:Read",
        "Branding:Read",
        "Contacts:Edit",
        "Contacts:Read",
        "CrossHybrid:Read",
        "DashboardPBX:Read",
        "DashboardZCC:Read",
        "Disclaimers:Read",
        "Group:Edit",
        "Group:Read",
        "Integration:Edit",
        "Integration:Read",
        "MarketPlace:Edit",
        "MarketPlace:Read",
        "NewIMChatHistory:Read",
        "OperationLogs:Read",
        "PbxAdmin:Edit",
        "PbxAdmin:Read",
        "PbxUsageReport:Read",
        "PhoneRole:Edit",
        "PhoneRole:Read",
        "Recording:Edit",
        "Recording:Read",
        "Role:Edit",
        "Role:Read",
        "Security:Read",
        "SerToSerApp:Edit",
        "SerToSerApp:Read",
        "SignInAndSignOut:Read",
        "SingleSignOn:Read",
        "SmsCampaigns:Read",
        "UsageReport:Read",
        "User:Edit",
        "User:Read",
        "UserActivitiesReport:Read",
        "UserAdvanced:Edit",
        "UserAdvanced:Read",
        "WebinarSetting:Edit",
        "WebinarSetting:Read",
        "ZoomDevelopers:Edit",
        "ZoomDevelopers:Read",
        "ZoomDevelopersChatbot:Edit",
        "ZoomDevelopersChatbot:Read",
        "ZoomDevelopersJWT:Edit",
        "ZoomDevelopersJWT:Read",
        "ZoomDevelopersOAuth:Edit",
        "ZoomDevelopersOAuth:Read",
        "ZoomDevelopersSDK:Edit",
        "ZoomDevelopersSDK:Read",
        "ZoomDevelopersWebhook:Edit",
        "ZoomDevelopersWebhook:Read"
    ],
    "sub_account_privileges": {}
}

```

Can you please share the response you are getting?

---

<div class="post-metadata">

**Author:** ![rupinder.goyal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rupinder.goyal/32/49990_2.png) [@rupinder.goyal](https://devforum.zoom.us/u/rupinder.goyal)\
**Post date:** [July 24, 2023, 4:52pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/11 "2023-07-24T16:52:54Z")

</div>

Hi @elisa.zoom ,  
I see similar results. But for some privileges like `Recording:read` , there is a concept of scope ( you can find it in role settings, it can either be entire account or a set of groups). The response of the role info does not contain that. How do I get that?

---

<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 24, 2023, 5:25pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/12 "2023-07-24T17:25:55Z")

</div>

do you mean this one?

 ![Screenshot 2023-07-24 at 1.25.11 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/4/24a34ff1778d6f8fcf1c1fbb13d872618af48c4c.png)

---

<div class="post-metadata">

**Author:** ![rupinder.goyal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rupinder.goyal/32/49990_2.png) [@rupinder.goyal](https://devforum.zoom.us/u/rupinder.goyal)\
**Post date:** [July 24, 2023, 5:47pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/13 "2023-07-24T17:47:18Z")

</div>

@elisa.zoom yes, this is the one I am talking about.

---

<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 24, 2023, 5:52pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/14 "2023-07-24T17:52:46Z")

</div>

@rupinder.goyal  
I see. It looks like there is no way to return that data via API right now.  
Feel free to make a feature request for that issue here:

> **[Feature Requests](https://devforum.zoom.us/c/feature-requests/23)**
>
> Have an API or SDK feature request? Share it here!

---

<div class="post-metadata">

**Author:** ![rupinder.goyal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rupinder.goyal/32/49990_2.png) [@rupinder.goyal](https://devforum.zoom.us/u/rupinder.goyal)\
**Post date:** [July 24, 2023, 6:05pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/15 "2023-07-24T18:05:59Z")

</div>

@elisa.zoom one more quick question, The share url of the recording changes everytime I click on share. Why is it so? Is there any way to find out about the recording uuid from the url itself?

---

<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 24, 2023, 8:22pm UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/16 "2023-07-24T20:22:30Z")

</div>

Hi @rupinder.goyal  
I do not believe so, the only way to get the recording id is by calling the endpoint  
Get meetings recording endpoint

> **[Zoom Meeting API](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/recordingGet)**
>
> API Reference for /docs/api/rest/reference/zoom-api/methods

---

<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:** [July 27, 2024, 11:59am UTC](https://devforum.zoom.us/t/scopes-in-role-information-api/91508/17 "2024-07-27T11:59:23Z")

</div>

Closed on July 27, 2024, 11:59am UTC

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