Quick answer: To give someone Full Access to a mailbox, run Add-MailboxPermission -Identity shared@contoso.com -User admin@contoso.com -AccessRights FullAccess -InheritanceType All. Add -AutoMapping $false if you don't want the mailbox to appear in their Outlook automatically. Add-MailboxPermission doesn't grant Send As: use Add-RecipientPermission for that.
What does Add-MailboxPermission do?
It adds permissions to a mailbox, or to a mail user in Exchange Server 2016, 2019 or Exchange Online. You use it to let a person or a group open a shared mailbox, manage a colleague's inbox, or take ownership of a resource mailbox.
It works in Exchange Server 2010 through Exchange Server SE and in Exchange Online. You need to be assigned permissions before you can run it.
How do I connect first?
Exchange Online:
Install-Module -Name ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName admin@contoso.com
See how to install the Exchange Online PowerShell module.
On-premises Exchange: open the Exchange Management Shell.
Add-MailboxPermission examples
| Task | Command |
|---|---|
| Full Access to a shared mailbox | Add-MailboxPermission -Identity shared@contoso.com -User admin@contoso.com -AccessRights FullAccess -InheritanceType All |
| Full Access without auto-mapping | Add-MailboxPermission -Identity shared@contoso.com -User admin@contoso.com -AccessRights FullAccess -InheritanceType All -AutoMapping $false |
| Full Access for a group | Add-MailboxPermission -Identity shared@contoso.com -User "Help Desk Team" -AccessRights FullAccess -InheritanceType All |
| Read permission only | Add-MailboxPermission -Identity shared@contoso.com -User admin@contoso.com -AccessRights ReadPermission |
| Set the owner of a room mailbox | Add-MailboxPermission -Identity "Room 222" -Owner "Tony Smith" |
| Microsoft 365 Group mailbox | Add-MailboxPermission -Identity sales-group@contoso.com -User admin@contoso.com -AccessRights FullAccess -GroupMailbox |
| Preview without changing anything | Add -WhatIf to any command |
Give an admin Full Access to every user mailbox
Microsoft's example for Exchange Online:
Get-Mailbox -ResultSize unlimited -Filter "(RecipientTypeDetails -eq 'UserMailbox') -and (Alias -ne 'Admin')" |
Add-MailboxPermission -User admin@contoso.com -AccessRights FullAccess -InheritanceType All
What are the AccessRights values?
Valid values: FullAccess, ReadPermission, ChangePermission, ChangeOwner, DeleteItem and ExternalAccount. FullAccess is the one most admins need: it lets the user open the mailbox.
Separate several values with commas. In Exchange Online and modern Outlook, FullAccess includes calendar items marked Private.
-AccessRights and -User can't be combined with -Owner.
How does AutoMapping work?
AutoMapping adds the mailbox to the user's Outlook profile through Autodiscover when they have Full Access. It's on ($true) by default.
- Turn it off for a new grant: add
-AutoMapping $false. - Turn it off for an existing grant: remove the permission with Remove-MailboxPermission, then add it again with
-AutoMapping $false. You can't change it in place. - Groups don't auto-map: when Full Access goes to a mail-enabled security group, the mailbox isn't added to members' Outlook automatically.
Which users and groups can get permissions?
-User accepts mailbox users, mail users and mail-enabled security groups. Non-mail-enabled security groups can be selected but don't work. Microsoft recommends a UPN (user@contoso.com) or domain\SamAccountName.
A mailbox holds at most 500 permission entries. To grant access to more people, use a security group: it counts as one entry.
What about InheritanceType?
It controls how the permission flows to folders in the mailbox. Values: None, All (the default), Children, Descendents and SelfAndChildren. Microsoft's examples use All.
Full Access vs Send As vs Send on Behalf
| Permission | Lets the user | Cmdlet |
|---|---|---|
| Full Access | Open and manage the mailbox | Add-MailboxPermission -AccessRights FullAccess |
| Send As | Send mail that appears to come from the mailbox | Add-RecipientPermission in Exchange Online, Add-ADPermission on-premises |
| Send on Behalf | Send mail "on behalf of" the mailbox | Set-Mailbox -GrantSendOnBehalfTo |
| Folder access (Calendar, Inbox) | Access one folder only | Add-MailboxFolderPermission |
How do I check the permission was added?
Get-MailboxPermission -Identity shared@contoso.com -User admin@contoso.com
See Get-MailboxPermission for more ways to list and filter permissions.
Troubleshooting
| Problem | Fix |
|---|---|
| PowerShell says Add-MailboxPermission isn't recognized | Connect first: Connect-ExchangeOnline, or open the Exchange Management Shell. |
| The mailbox doesn't appear in Outlook | AutoMapping may be off, or access came through a group, which doesn't auto-map. Add the mailbox in Outlook manually. |
| The mailbox appears in Outlook and you don't want it to | Remove the permission, then add it again with -AutoMapping $false. |
| The user can open the mailbox but can't send from it | Full Access doesn't include Send As. Grant it with Add-RecipientPermission. |
| A group was granted access but members can't open the mailbox | Use a mail-enabled security group. Non-mail-enabled groups don't work. |
| You need to grant more than 500 users | Use a security group instead of individual users. |
| A parameter isn't available | It may be on-premises only (DomainController) or cloud only (GroupMailbox), or outside your assigned role. |
Summary
Add-MailboxPermissiongrants mailbox-level rights, most often FullAccess.- AutoMapping is on by default. To turn it off for an existing grant, remove and re-add the permission.
- Send As is a different cmdlet: Add-RecipientPermission in Exchange Online.
- Use a mail-enabled security group for large or changing teams, and to stay under 500 entries.
- Check results with Get-MailboxPermission.
Related: Get-MailboxPermission, Remove-MailboxPermission, Add-RecipientPermission, Add-MailboxFolderPermission.
Meeting Room 365 turns any iPad or Android tablet into a room display for Exchange and Microsoft 365 calendars. See the features or pricing: $9 a room a month.