I have the following code to get rooms from graph:
var roomUrl = graphClient.Places.AppendSegmentToRequestUrl("microsoft.graph.room");
var response= await new GraphServicePlacesCollectionRequest(roomUrl, graphClient, null).GetAsync();
if (response.CurrentPage.Count > 0)
{
foreach (var room in response.CurrentPage)
{
Console.WriteLine(room.Id);
}
}
room.Id represents RoomId which is different from AAD object Id of the room.
Is there a way to get object Id of the room instead of room Id in the response?