0

Basically same question with this one more than 3.5 years ago. Curious if anything has changed? Is it available now?

Was hoping to do below commands via REST:

Add-MailboxPermission -Identity $userUPN -User $delegateTo -AccessRights FullAccess -InheritanceType All
Set-Mailbox -Identity $userUPN -Type Shared

Thanks!

2 Answers2

0
  • Nope, still Mailbox level operations are not exposed with Microsoft Graph API.
  • You can use the same exchange PowerShell commands to perform the operations.
  • If you wish this to be implemented by Microsoft, consider filing feature request or upvote the existing one, incase if you found one - so that the respective team can consider it.
Dev
  • 2,428
  • 2
  • 14
  • 15
  • Thanks! The reason I'm trying to find a Graph API counterpart is for me to be able to do this programmatically. My limitation with a PS script is it asks for MFA (multi-factor authentication) which obviously will not work as I'm trying to automate it. Any idea how I can achieve that? Thanks! – ticsrobo au May 24 '21 at 06:02
  • Thanks for accepting the answer. In case of Exchange PowerShell, please have a look at [Exchange Online Powershell Module v2 which supports MFA](https://learn.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps). – Dev May 24 '21 at 08:45
0

To do this through graph API you need to have a license that has Exchange Online as a service plan, some of these licenses are Microsoft 365 F3, or Business Premium, assign your new user one these licenses on creation and a Mailbox will be created for them

jb0932
  • 11
  • 3