Microsoft Graph API national cloud support to list places

Disha Hegde 1 Reputation point
2022-11-29T03:39:46.86+00:00

I am trying to use the following US National Cloud URL along with access token to list rooms as per this document https://learn.microsoft.com/en-us/graph/api/place-list?view=graph-rest-1.0&tabs=http . When I try this API -

https://graph.microsoft.us/v1.0/places/microsoft.graph.room?$top=5000
https://dod-graph.microsoft.us/v1.0/places/microsoft.graph.room?$top=5000

I am getting the following error:

org.springframework.web.client.HttpClientErrorException: 400 Bad Request

However it works fine with this global endpoint -

https://graph.microsoft.com/v1.0/places/microsoft.graph.room?$top=5000

Since the above places API was not supporting with national cloud endpoint I tried to use the beta version API -

https://graph.microsoft.us/beta/users/{0}/findRooms

This works fine with US national cloud end point. But this does not list more than 100 rooms.

Is there any other API which I can use to

  1. List the more than 100 rooms
  2. Which is also supported by national cloud endpoint?
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,587 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,290 Reputation points
    2023-04-17T20:19:49.1966667+00:00

    Hello Disha Hegde, Thanks for reach out. Per articles https://learn.microsoft.com/en-us/graph/api/user-findrooms?view=graph-rest-beta&tabs=http "You can get all the room lists in the tenant, get all the rooms in the tenant, or get all the rooms in a specific room list. You can get up to the first 100 rooms in the tenant." https://learn.microsoft.com/en-us/graph/api/place-list?tabs=http&view=graph-rest-1.0 A place object can be one of the following types:

    • A room which includes rich properties such as an email address for the room, and accessibility, capacity, and device support.
    • A room list which includes an email address for the room list, and a navigation property to get the collection of room instances in the room list. Both room and roomList are derived from the place object. By default, this operation returns 100 places per page. There is no other API that returns more 100 rooms per page. You are welcome to provide your feedback and suggestion via the link below: https://aka.ms/graphfeedback Thanks.
    0 comments No comments