0

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.

   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 global endpoint https://graph.microsoft.com/v1.0/places/microsoft.graph.room?$top=5000

Is List places API not supported with US endpoints or is there anything additional required to make the request? How do I find out if it is supported in US environment?

dev_101
  • 321
  • 4
  • 14

1 Answers1

0

You can find more details about national cloud deployments here.

Not all Graph features are available across all national clouds.

Before calling Graph API, you should first acquire a token from endpoint which is specific for each national cloud.

Azure AD for US Government cloud requires https://login.microsoftonline.us endpoint for acquiring the token.

user2250152
  • 14,658
  • 4
  • 33
  • 57
  • The authentication is successful with https://login.microsoftonline.us and I am passing the acquired token to the List places request. – dev_101 Oct 19 '21 at 11:35