# GraphQL with Granular Scopes

**URL:** <https://devforum.zoom.us/t/graphql-with-granular-scopes/108648>\
**Category:** GraphQL\
**Created:** [April 25, 2024, 11:18am UTC](https://devforum.zoom.us/t/graphql-with-granular-scopes/108648 "2024-04-25T11:18:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.leach](https://avatars.discourse-cdn.com/v4/letter/p/a3d4f5/32.png) [@paul.leach](https://devforum.zoom.us/u/paul.leach)\
**Post date:** [April 25, 2024, 11:18am UTC](https://devforum.zoom.us/t/graphql-with-granular-scopes/108648/1 "2024-04-25T11:18:47Z")

</div>

Hi all,

I’m having trouble trying to get my previously working GraphQL query with granular scopes.

My query looks like this:

“{metricsZoomRooms(first:200) { edges { camera deviceIp email health id issues lastStartTime location microphone roomName speaker status } pageInfo { cursor hasNextPage } } }”

I’ve tried numerous scopes with no success, including the scope defined in the GraphQL scopes list.

| GraphQL Object | Scope | Permission |
| --- | --- | --- |
| metricsZoomRooms | dashboard\_zr:read:admin dashboard:read:admin | DashboardZR:Read |
| metricsZoomRoomIssues | dashboard\_home:read:admin | DashboardHome:Read |

In granualr scopes, that translates to:

| dashboard:read:list\_zoomrooms:admin | View Zoom Room metrics | | |
| --- | --- | --- | --- |
| dashboard:read:issues\_zoomroom:admin | View Zoom Room issues | | |

I always get the return:

“{"errors":[{"message":"Invalid access token, metricsZoomRooms field does not contain required scopes.","locations":[{"line":512,"column":5}],"path":["/metricsZoomRooms"],"extensions":{"errorType":"NO\_SCOPE"}}],"data":{"metricsZoomRooms":null}}”

Any ideas please?

Thanks!

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [April 29, 2024, 7:49pm UTC](https://devforum.zoom.us/t/graphql-with-granular-scopes/108648/2 "2024-04-29T19:49:15Z")

</div>

@paul.leach is this only with the Zoom Rooms or is it happening to others as well?

---

<div class="post-metadata">

**Author:** ![paul.leach](https://avatars.discourse-cdn.com/v4/letter/p/a3d4f5/32.png) [@paul.leach](https://devforum.zoom.us/u/paul.leach)\
**Post date:** [April 30, 2024, 11:59am UTC](https://devforum.zoom.us/t/graphql-with-granular-scopes/108648/3 "2024-04-30T11:59:30Z")

</div>

Thanks for the response!

Our application only uses the Zoom Room endpoints. We are using some others that are working fine.

Those are:

/rooms  
/rooms/locations  
/rooms/{0}/devices

It’s just this GraphQL query we are having issues with.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 7, 2024, 8:41pm UTC](https://devforum.zoom.us/t/graphql-with-granular-scopes/108648/4 "2024-05-07T20:41:52Z")

</div>

Hi @paul.leach @ojus.zoom ,

Confirmed with our eng team that graphql is not supported with granular scopes at this time. Support for granular scopes is tbd.

---

<div class="post-metadata">

**Author:** ![paul.leach](https://avatars.discourse-cdn.com/v4/letter/p/a3d4f5/32.png) [@paul.leach](https://devforum.zoom.us/u/paul.leach)\
**Post date:** [May 13, 2024, 2:59pm UTC](https://devforum.zoom.us/t/graphql-with-granular-scopes/108648/5 "2024-05-13T14:59:19Z")

</div>

Thank you for the response. We are engaging now with one of your colleagues to find a solution.
