How to retrieve all users of a shared mailbox with Microsoft Graph API

Samuel Zallocco 5 Reputation points
2023-10-05T14:01:19.77+00:00

Hi,

Reading the Microsoft Graph API documentation, I'm able to retrieve a shared mailbox and it's "owner" with:

https://graph.microsoft.com/v1.0/users/<ID>/?$expand=manager

or

https://graph.microsoft.com/v1.0/users/<ID>/manager

My question is: How can get all the other users of the shared mailbox?

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Vasil Michev 127.6K Reputation points MVP Volunteer Moderator
    2023-10-05T15:02:02.8833333+00:00

    If by "users" you mean all the people that have been granted Full access/delegate permissions over the shared mailbox, the answer is you cannot do this via Graph. This is an Exchange admin operation, and the Graph currently has zero coverage for such. Use Exchange Online PowerShell instead (Get-MailboxPermission cmdlet).

    Was this answer helpful?

    2 people found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.