I am attempting to get a list of room resources from the Microsoft Graph API using the list places endpoint at https://graph.microsoft.com/beta/places/microsoft.graph.room (see docs).
I am getting a response back that says: {"code":"invalid_permissions","message":"place.read.all permission is required to read company places, scopes/roles provided: Calendars.ReadWrite IsAppOnly:True"}
I am getting this error from both the Microsoft Graph API Explorer and from a backend service using client credentials to access the data in a another tenant that has approved the requested scopes.
I have inspected the OAuth token and it includes the "Place.Read.All" scope from both the Microsoft Graph API Explorer and from my service:
For the Graph API Explorer
> jwt {access_token}
* Payload
{
...
"scp": "
Calendars.ReadWrite
Contacts.ReadWrite
Directory.Read.All
Directory.ReadWrite.All
Files.ReadWrite.All
Mail.ReadWrite
Notes.ReadWrite.All
openid
People.Read
Place.Read.All
profile
Sites.ReadWrite.All
Tasks.ReadWrite
User.ReadBasic.All
User.ReadWrite
email"
...
}
For my service
> jwt {access_token}
* Payload
{
...
"roles": [
"Place.Read.All",
"User.Read.All",
"Calendars.ReadWrite"
],
...
}
nextLinkvalue, so it can only return the first 100 addresses. How can one get a list of rooms of any sort? - psg-1isResourceAccountis always null :( - bpedman