0

Right now I have a PS script that is checking for mailbox permissions and if they are missing, the permissions are added.

From C#, would like to call the equivalent of:

Get-MailboxPermission

and if needed, add permissions like:

Add-MailboxPermission -Identity $email -User $AdminUserName -AccessRights fullAccess -InheritanceType All

even if I can find the equivalent of Add-MailboxPermission that would do it. Cannot seem to find a REST equivalent or even a way with the GraphServiceClient.

I have looked at all of the available MS REST API references that I can find including Outlook, Graph, etc. to no avail. I can add the desired permissions via the web site and PS, but I am trying to keep this solution in C#

Eric
  • 74
  • 4

1 Answers1

1

I don't believe these are available. You might want to upvote this in UserVoice, or if it isn't the same, create a new request.

Hope this helps,

Dan Kershaw - MSFT
  • 5,833
  • 1
  • 14
  • 23
  • Yes, at least it confirms what I thought. Thank you for taking the time to post it. I will look at the UserVoice link – Eric Oct 28 '17 at 22:47