Mapping Mailboxes with Powershell including Auto Map Parameters

- Words
2025-01-20

Managing mailbox permissions using Powershell and defining if the delegated mailbox should not be auto mapped.


Command List

Import the Exchange Online Management Module and Connect to Exchange Online

Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline

Remove Mailbox Permissions (If user has existing permissions)

Remove-MailboxPermission -Identity [email protected] -User [email protected] -AccessRights FullAccess

Add Mailbox Permissions without Auto map Enabled

Add-MailboxPermission -Identity sharedmailbox@domain.com -User sampleuser@domain.com -AccessRights FullAccess -AutoMapping $false

Checking Access List of Who Has Access for a Mailbox

Get-MailboxPermission -Identity sharedmailbox@domain.com

Checking Access List of What Mailboxes a User Has Access To

Get-MailboxPermission -Identity sampleuser@domain.com | Format-List

 


Jozef
Author