Shared Mailboxes in Microsoft 365: Set Up, Secure and License Them Correctly
Shared mailboxes are for addresses several people work from, such as info@, support@ or reception. People with permission can read the mailbox, and send as it or on behalf of it (About shared mailboxes (opens in a new tab)). Every shared mailbox also has a user account behind it, and that account is the part admins most often get wrong.
Use it when: you create a team mailbox, convert a leaver's mailbox, or audit existing shared mailboxes for sign-in and license problems.
Before you start
- Subscription: a Microsoft 365 plan that includes Exchange Online (Microsoft 365 Apps for business doesn't include email). People who open a shared mailbox need their own licensed Exchange Online mailbox (Licensing and storage limits (opens in a new tab)).
- Role: an Exchange admin role can create shared mailboxes (Access and permissions (opens in a new tab)).
- Hybrid Exchange: create and manage shared mailboxes in the on-premises Exchange admin center instead (Create a shared mailbox (opens in a new tab)).
When a shared mailbox needs a license
A shared mailbox can hold up to 50 GB without a license. You need one when (Licensing and storage limits (opens in a new tab)):
- it needs more than 50 GB (Exchange Online Plan 2 raises it to 100 GB);
- you want a larger archive or auto-expanding archiving (Plan 2, or Plan 1 plus Exchange Online Archiving);
- it must go on litigation hold (same options);
- you apply some advanced security or compliance features.
At the limit, the mailbox soon can't send, and later stops receiving, with senders getting an NDR.
Step by step
- Create it. Microsoft 365 admin center > Teams & Groups > Shared mailboxes > + Add a shared mailbox, enter a name (this sets the address), Save changes, then Add members to this mailbox (Create a shared mailbox and add members (opens in a new tab)). New shared mailboxes have sign-in blocked by default.
- Pick permissions (Which permissions should you use? (opens in a new tab)):
- Full Access opens the mailbox and manages items, but doesn't allow sending.
- Send As sends as the mailbox; Send on Behalf shows "user on behalf of mailbox".
- In the Exchange admin center: Recipients > Mailboxes > the mailbox > Edit > Mailbox permissions > Manage mailbox delegation.
- Assign permissions to people, not a security group, if you want automapping. Automapping (the mailbox appearing in Outlook automatically after restart) is set per user and doesn't work through a security group (Add the shared mailbox to Outlook (opens in a new tab)).
- Keep sign-in blocked. Microsoft says a shared mailbox isn't meant for direct sign-in: always block sign-in for its account and keep it blocked. Its password is system-generated and not meant to be used (Access and permissions (opens in a new tab)).
- When converting a leaver's mailbox, convert while it's still licensed, then remove the license if it's under 50 GB. If you don't reset the password, the original username and password keep working on the shared mailbox, so block sign-in (Convert a user mailbox (opens in a new tab)). See Offboard a departing user.
Read-only PowerShell: shared mailboxes that can still be signed in to
Read-only. Modules: ExchangeOnlineManagement (Get-EXOMailbox) and Microsoft.Graph.Users. Graph scope: User.Read.All (reading accountEnabled and assignedLicenses). Exchange role: a read-only role group such as View-Only Organization Management. Not tested against a live tenant.
Connect-ExchangeOnline
Connect-MgGraph -Scopes "User.Read.All"
Get-EXOMailbox -RecipientTypeDetails SharedMailbox -ResultSize Unlimited -Properties ExternalDirectoryObjectId |
ForEach-Object {
$u = Get-MgUser -UserId $_.ExternalDirectoryObjectId -Property "accountEnabled,assignedLicenses,onPremisesSyncEnabled"
[pscustomobject]@{
DisplayName = $_.DisplayName
PrimarySmtp = $_.PrimarySmtpAddress
SignInEnabled = $u.AccountEnabled
LicenseCount = @($u.AssignedLicenses).Count
Synced = $u.OnPremisesSyncEnabled
}
} | Export-Csv .\shared-mailbox-signin.csv -NoTypeInformation
ExternalDirectoryObjectId is the mailbox's object ID in Microsoft Entra ID (Get-EXOMailbox (opens in a new tab)), and User.EnableDisableAccount.All plus User.Read.All is only needed if you later change accountEnabled (Get user permissions (opens in a new tab)). Rows with SignInEnabled = True need sign-in blocked; rows with a license need a reason (size, archive, hold).
Gotchas
- 25 users. Microsoft lists a maximum of 25 users for a shared mailbox, with connection failures or duplicate messages if too many use it at once; use a Microsoft 365 group beyond that (Client support and usage (opens in a new tab)).
- No external members. People outside your organization can't be given access; use a Microsoft 365 group instead.
- You can't stop deletions in a shared mailbox, and email sent from it can't be encrypted because it has no security context of its own (Security and compliance (opens in a new tab)).
- Don't delete the user account behind a converted mailbox; it anchors the shared mailbox (Convert a user mailbox (opens in a new tab)).
- Hidden from the GAL breaks Send As/Send on Behalf in Outlook desktop, because both need the mailbox visible in the Global Address List (Which permissions (opens in a new tab)).
- "You do not have the permission to send the message on behalf of the specified user" right after setup is usually replication delay; wait about an hour (Send permissions error (opens in a new tab)).
- You can't migrate a shared mailbox to a Microsoft 365 group later (Create a shared mailbox (opens in a new tab)), so pick the right container up front.
Check it worked
The script shows SignInEnabled = False for every shared mailbox, and licensed rows have a documented reason. Members can open the mailbox and send with the permission they were given.
Roll back
Remove members or permissions in Manage mailbox delegation. To turn a shared mailbox back into a user mailbox: Exchange admin center Recipients > Mailboxes > the mailbox > Others > Convert to regular mailbox, then license the account and reset its password (Convert back (opens in a new tab)).
Related on EntraReady: Offboard a departing user, Block automatic external email forwarding, Disabled user accounts that still have licenses.
← All GuidesIs this still accurate?
Spotted something outdated or wrong on this page? Tell us in a sentence. The page address is sent with it.