Documentation Navigation
Shared mailboxes: IT setup guide
Last updated: November 27, 2026
For the person who runs your Microsoft 365. Your users can work team and brand inboxes (support@, sales@, info@, one per product) in InflowMail with their own sign-in. This page covers what InflowMail asks Microsoft for, how to approve it once for the whole organisation, the Exchange Online PowerShell to create the mailboxes and grant access, and what Microsoft's licensing says.
1. What InflowMail asks for, and why
Everything below is a delegated Microsoft Graph permission: InflowMail acts as the signed-in user and can only reach what Exchange already lets that user open. InflowMail never asks for application (app-only) permissions such as Mail.Read as an application or Mail.Read.All, and never holds an Exchange admin role.
| Permission | When it is asked for | What it is for |
|---|---|---|
Mail.Read.Shared |
A user adds a shared mailbox (any level) | read shared mailboxes (team inboxes such as support or info) that Exchange already gives the user Full Access to, only if the user adds one |
Mail.ReadWrite.Shared |
The user picks Read + organise or Full | move, flag, archive and delete messages in those shared mailboxes when the user asks |
Mail.Send.Shared |
The user picks Full | send from a shared mailbox, only where Exchange also gives the user Send As or Send on Behalf |
User.ReadBasic.All |
Only when the user clicks Find shared mailboxes | list names and email addresses in the user's organisation, only when the user clicks "Find shared mailboxes", so InflowMail can ask Microsoft which shared mailboxes the user can already open (nothing from the list is stored) |
- None of these is asked for at a normal mailbox connect. They are added (Microsoft shows a consent screen) the first time a user adds or searches for a shared mailbox.
- They don't widen anyone's access. Graph opens a shared mailbox only for a user you gave Full Access in Exchange, and refuses the rest. Sending also needs Send As or Send on Behalf.
- Find shared mailboxes lists up to 2,000 people and mailboxes in your directory with the user's own sign-in, and asks Microsoft which inboxes that user can open. Nothing from the list is stored; the audit log records the number found, not the addresses.
- Users can always add a shared mailbox by typing its address, without
User.ReadBasic.All.
The full list of everything InflowMail can request is on the admin consent guide.
2. Approve it for the whole organisation (optional)
Microsoft lets users consent to these delegated permissions themselves, unless your organisation restricts user consent. If it does, or you'd rather approve once for everyone, use one of these. Approving does not connect anyone's mailbox; each user still signs in as themselves.
Admin consent link
The pattern is:
https://login.microsoftonline.com/organizations/adminconsent?client_id=0e39696b-3cd9-46eb-b4e2-a7ddac0e59dd
Ready to open (sign in as a Global Administrator, Cloud Application Administrator or Application Administrator, then Accept). This approves every permission on the app registration:
https://login.microsoftonline.com/organizations/adminconsent?client_id=0e39696b-3cd9-46eb-b4e2-a7ddac0e59dd&redirect_uri=https%3A%2F%2Fwww.inflowmail.ai%2Fapi%2Faccounts%2Foauth%2Fmicrosoft%2Fcallback&state=adminconsentOr approve only the mailbox permissions at the Full level plus shared mailboxes and Find shared mailboxes (Microsoft's v2 endpoint with an explicit scope list):
Want less? The access levels table has links for Read only and Read + organise.
Or in the Entra admin center
- Open entra.microsoft.com as an admin.
- Go to Identity → Applications → Enterprise applications and search for "InflowMail". It appears after the first user in your organisation connects, or after you open the link above.
- Open it, then Security → Permissions.
- Click Grant admin consent for <your organisation> and review the list Microsoft shows before accepting.
If users sent requests through your admin consent workflow, approve them under Enterprise applications → Admin consent requests.
3. Create shared mailboxes and grant access
You can do all of this in the Microsoft 365 admin center (Teams & groups → Shared mailboxes). For several mailboxes or several people, Exchange Online PowerShell is quicker. Run these as an Exchange administrator. InflowMail never runs them and never holds Exchange admin rights.
Install the module and connect (once per session)
Install-Module ExchangeOnlineManagement -Scope CurrentUser Connect-ExchangeOnline
Create a shared mailbox
Skip this for a mailbox that already exists. New shared mailboxes have sign-in blocked by default; leave it that way.
New-Mailbox -Shared -Name 'support' -DisplayName 'Support' -PrimarySmtpAddress '[email protected]'
Give a person Full Access (to open it)
-AutoMapping $false stops Outlook desktop adding the mailbox to that person's folder list by itself. InflowMail doesn't need auto-mapping; leave it on if your users also want it in Outlook.
Add-MailboxPermission -Identity '[email protected]' -User '[email protected]' -AccessRights FullAccess -InheritanceType All -AutoMapping $false
Give a person Send As (to send as the mailbox)
Recipients see the shared mailbox as the sender. Use Send on Behalf instead if replies should read "Person on behalf of Support".
Add-RecipientPermission -Identity '[email protected]' -Trustee '[email protected]' -AccessRights SendAs -Confirm:$false
Send on Behalf, if you prefer it:
Set-Mailbox -Identity '[email protected]' -GrantSendOnBehalfTo @{Add='[email protected]'}
Check who has access
Get-MailboxPermission -Identity '[email protected]' | Where-Object { $_.AccessRights -contains 'FullAccess' -and -not $_.IsInherited } | Format-Table Identity, User, AccessRights -AutoSize Get-RecipientPermission -Identity '[email protected]' | Where-Object { $_.AccessRights -contains 'SendAs' } | Format-Table Identity, Trustee, AccessRights -AutoSize
Permission changes can take up to an hour to reach every Microsoft data center. If a user can't open or send from a mailbox right after you grant it, wait and try again.
4. Check the app and its consent (optional, read-only)
With the Azure CLI, these commands only read. 0e39696b-3cd9-46eb-b4e2-a7ddac0e59dd is InflowMail's application (client) ID.
Sign in to your tenant (no Azure subscription needed):
az login --tenant <your-tenant>.onmicrosoft.com --allow-no-subscriptions
Is InflowMail's enterprise application in your tenant?
az ad sp show --id 0e39696b-3cd9-46eb-b4e2-a7ddac0e59dd --query "{name:displayName, appId:appId, enabled:accountEnabled}"Which delegated permissions have been granted, and to whom (consentType AllPrincipals is an admin approval for everyone; Principal is one user's own consent):
az ad app permission list-grants --id 0e39696b-3cd9-46eb-b4e2-a7ddac0e59dd --show-resource-name --query "[].{resource:resourceDisplayName, consentType:consentType, scope:scope}" -o table
"Resource ... does not exist" from az ad sp show means nobody in your organisation has connected InflowMail yet and no admin has approved it.
5. Licensing: what Microsoft says
From Microsoft's own documentation. Microsoft sets these rules and can change them; check the linked pages before you buy or remove licences.
- A shared mailbox needs no licence up to 50 GB. "A shared mailbox can store up to 50 GB of data without assigning a license to it."
- Each person who opens or sends from it needs their own licence. "To access a shared mailbox, a user must have a licensed Exchange Online mailbox, but the shared mailbox doesn't require a separate license."
- Nobody signs in to a shared mailbox directly. It has a user account with a system-generated password that isn't meant to be used, and Microsoft says to keep its sign-in blocked. People open it with their own sign-in, which is how InflowMail opens it too.
- Archiving, litigation hold or more than 50 GB need a licence on the shared mailbox: Exchange Online Plan 2, or (for archiving and hold) Plan 1 with the Exchange Online Archiving add-on.
- Only people inside your organisation can be given access, and Microsoft suggests at most 25 people per shared mailbox.
Sources: About shared mailboxes and Create a shared mailbox (Microsoft Learn).
6. Troubleshooting
"Need admin approval", or "Your organisation doesn't let InflowMail list its people"
Your tenant restricts user consent (or blocks users from reading the directory), so the user can't approve the shared mailbox permissions or User.ReadBasic.All themselves. Approve once with section 2. Until then the user can still add a shared mailbox by typing its address, if Mail.Read.Shared is approved. Error codes such as AADSTS65001 and AADSTS90094 are explained in the admin consent guide.
A mailbox isn't found, or "You don't have access to ... in Exchange"
- The user has no Full Access on it. Grant it (section 3), then check with
Get-MailboxPermission. Send As alone is not enough to open a mailbox. - The grant is new: allow up to an hour.
- Find shared mailboxes checks the first 2,000 directory entries; in a larger directory, add the mailbox by typing its address.
- The user searched from a personal Outlook.com account or another shared mailbox. Shared mailboxes are reached from the user's own work account.
"Exchange won't let you send as ..."
Exchange refused the send (ErrorSendAsDenied): the user can open the mailbox but has neither Send As nor Send on Behalf. Grant one with Add-RecipientPermission ... -AccessRights SendAs or Set-Mailbox ... -GrantSendOnBehalfTo. Also check the mailbox was added at the Full level in InflowMail (Read and Read + organise never send), and allow up to an hour after a new grant.
New mail shows up a little later than in the user's own inbox
Expected: Microsoft Graph sends no change notifications for shared mailboxes with delegated permissions, so InflowMail checks them for new mail on a schedule.
Still stuck?
Open a support ticket with the exact message the user saw and the time it happened. Our support staff have no tool to open your mailbox; we work from what you send us.