We need to be able to distinguish between shared mailbox and normal user via Microsoft Graph!

Bohatikov Viacheslav 6 Reputation points
2021-03-23T10:59:38.073+00:00

At this point, the user that is being retrieved by Microsoft Graph doesn't have any properties that would make it clear that this user is a room or a shared mailbox. But for our product we need this information! I've would rather write this article as a suggestion on your uservoice site but it "is not currently active" so I expect that I can get an answer for my question here.

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

1 answer

Sort by: Most helpful
  1. Vasil Michev 91,126 Reputation points MVP
    2021-03-23T13:03:08.61+00:00

    The issue here is even more fundamental - the lack of any Graph API endpoints for Exchange Online administration. Microsoft is yet to release any information on that front, so for the time being you need to rely on other methods (ExO PowerShell or good old MSOnline module). I suppose you can also try /messages or /mailFolders endpoint against a given user object, but that returns a 403 in case no mailbox exists, so it can be misleading.