Library

Guides Quick Fixes Scripts Find a Guide

Tools

Error Decoder Assessment Baselines Free Tools Service status What's Changed

More

AI Certifications For MSPs Recommended Gear Field Kit FAQ About Contact Get Assessment

Shared Mailboxes in Microsoft 365: Set Up, Secure and License Them Correctly

EntraReady Guides · Practical Microsoft 365 & Entra ID
Last reviewed:
Last verified against Microsoft Learn:

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

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)):

At the limit, the mailbox soon can't send, and later stops receiving, with senders getting an NDR.

Step by step

  1. 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.
  2. 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.
  3. 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)).
  4. 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)).
  5. 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

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 Guides

Is this still accurate?

Spotted something outdated or wrong on this page? Tell us in a sentence. The page address is sent with it.

Reports go to the EntraReady inbox. Please don’t include passwords or tenant secrets.