Microsoft Graph List places API support for US National cloud

293 views Asked by At

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?

1

There are 1 answers

1
user2250152 On

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.