How to set mailbox folder permissions via Graph API

Grellmann, Lajos 20 Reputation points
2023-10-17T10:00:24.23+00:00

Hello dear readers,

Lately I am running into issues with the graph API.

I want to update a script wish is using Connect-AzureAD and Connect-ExchangeOnline to graph API.
In this script I am updating the Mailbox folder Permission like this:

Set-MailboxFolderPermission -Identity ******@mail.com:\Calendar -User Default -AccessRights LimitedDetails

After some research and testing, I couldn't get it running with Graph API. Also, I asked ChatGPT for some help which told me, that currently, the Microsoft Graph API does not expose an endpoint to set mailbox folder permissions like the one defined in the initial PowerShell script (Set-MailboxFolderPermission).

Will Microsoft continue the Connect-AzureAD and Connect-ExchangeOnline modules, will this function be implemented in Graph, are there workarounds?

I would love to get some nice responses,
Best regards

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

Accepted answer
  1. Vasil Michev 116.8K Reputation points MVP
    2023-10-17T16:18:46.17+00:00

    For once, ChatGPT is correct - there are currently no Graph API endpoints to manage Exchange mailbox (folder) permissions. You have to use PowerShell for the time being, this is the only supported method. Microsoft is evaluating other options, and as soon as they set of a given approach, they will post something on the EHLO (and Graph) blog.

    In any case, the Exchange Online PowerShell module will continue to be supported.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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