Microsoft 365

Remove Mailbox Permission (Full Access and Send As) Using PowerShell

Posted by

Before we proceed, depending on your environment, connect to Exchange Online remote PowerShell.

Remove Mailbox Permission (Full Access and Send As)

PS C:\WINDOWS\system32> Remove-MailboxPermission -Identity "user.x@itadminguide.com" -User "user.y@itadminguide.com" -AccessRights FullAccess
-InheritanceType All -Confirm:$false

Identity –  user or shared mailbox to be impacted
User – User that will get permission
AccessRights – permissions either FullAccess, SendAs …etc

 

List all User and Shared Mailboxes that a User has Permission

PS C:\WINDOWS\system32> Get-Mailbox -RecipientTypeDetails UserMailbox,SharedMailbox -ResultSize Unlimited | Get-MailboxPermission -User user.y@itadminguide.com

 

List all Mailboxes that a User has SendAs Permission

PS C:\WINDOWS\system32> Get-Mailbox | Get-RecipientPermission -Trustee user.y@itadminguide.com

 

Add Mailbox Permission

PS C:\WINDOWS\system32> Add-MailboxPermission –Identity “user.x@abc.com” –User “user.y@abc.com” –AccessRights FullAccess

Grant Mailbox Access Permission to Microsoft365 Mailbox