Graph Explorer shows data for places but used in Graph demo app undefined is returned

Jon Kelley 20 Reputation points
2023-01-20T22:26:13.6666667+00:00

I am using the Graph Explorer tool and when I use the endpoint of

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

I can see the one record I have in my test tenant.

When I use the demo app from this tutorial I get back undefined.

The other APIs seem to work fine like /me or /me/calendarview or /me/getSchedule

Just this one for the room data returns undefined but it works in the Graph Explorer.

FWIW - I can get the availability of the room using the email for the room as part of the /me/calendar/getSchedule call.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,938 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shivam Dhiman 5,866 Reputation points
    2023-01-20T22:53:39.0333333+00:00

    Hi @Jon Kelley

    List Places requires Place.Read.All permission. Please ensure the token generated has this permission before running this Graph API. You can decode the token using https://jwt.io/ and check permissions in your token.

    Please note: Graph explorer, an Enterprise application, uses user signIn permission which is delegated Permission.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful