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

Microsoft 365

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

All in One WordPress Hosting Starts at 30$ per month
All in One WordPress Hosting
WordPress
High optimized WordPress hosting, secure firewall, HTTPS, Backup, hack-fix guarantee and many others at 30$ per month