Grant Outlook Inbox Access to a Security Group with Exchange PowerShell
Question details
Grant a mail-enabled security group access to multiple users' inboxes without configuring each inbox individually in Outlook.
- Product
- Microsoft Outlook and Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator wants to give approximately 40 users access to inboxes through a security group, potentially with Editor permission.
- Observed behavior
- The administrator needs a way to apply the same inbox folder permission across multiple mailboxes.
Confirm that the group is a mail-enabled security group and identify the mailboxes and permission level required. For Exchange Online, install the Exchange Online PowerShell module and sign in with an account authorized to manage mailbox folder permissions.
Add the security group to multiple inboxes with Exchange Online PowerShell
Use this approach to grant Editor access to the Inbox folder in each mailbox listed in a text file.
Editor is a folder-level permission; it does not grant access to the entire mailbox or automatically grant access to Inbox subfolders. The script finds each mailbox's Inbox folder rather than assuming its display name is English.
This example adds a new permission entry. If the group already has an entry on an inbox, review it and use Set-MailboxFolderPermission instead of Add-MailboxFolderPermission.
Open PowerShell and run Connect-ExchangeOnline, then sign in with an authorized administrator account. If the command is unavailable, install the ExchangeOnlineManagement module first.
Create C:\Temp\mailboxes.txt with one mailbox email address per line. Replace the group address and file path in the script below with your own values.
Run this script in the connected PowerShell session: $group = 'security-group@example.com' $mailboxes = Get-Content 'C:\Temp\mailboxes.txt' foreach ($mailbox in $mailboxes) { try { $inbox = Get-MailboxFolderStatistics -Identity $mailbox -FolderScope Inbox -ErrorAction Stop | Where-Object { $_.FolderType -eq 'Inbox' } | Select-Object -First 1 if (-not $inbox) { throw 'Inbox folder not found.' } $path = $inbox.FolderPath.Replace('/', '\') $identity = "${mailbox}:$path" Add-MailboxFolderPermission -Identity $identity -User $group -AccessRights Editor -ErrorAction Stop Write-Host "Added permission: $identity" } catch { Write-Warning "Could not update ${mailbox}: $_" } }
For a mailbox you updated, run Get-MailboxFolderPermission -Identity 'user@example.com:\Inbox' -User 'security-group@example.com'. If the Inbox has a localized name, use the folder path found by Get-MailboxFolderStatistics instead.
Use WPS Office as an alternative for everyday office work
WPS Office is a free, lightweight alternative with a familiar interface for working with documents, spreadsheets, and presentations. Its Microsoft Office format compatibility helps make migration between office suites easier. Exchange inbox permissions must still be managed in Microsoft Exchange.

Frequently Asked Questions
Does Editor access to the Inbox grant access to the whole mailbox?
No. Add-MailboxFolderPermission with Editor applies to the specified folder. Other folders and Inbox subfolders need their own permissions if access is required.
How do I change an existing group permission to Editor?
Use Set-MailboxFolderPermission -Identity 'user@example.com:\Inbox' -User 'security-group@example.com' -AccessRights Editor. Replace Inbox with the actual folder name if it is localized.
Can I use any security group for Exchange folder permissions?
Use a mail-enabled security group that Exchange can resolve. Check the group in the Exchange admin center or with Get-DistributionGroup before applying permissions.
Why did the script report an error for one mailbox?
Check the warning for that mailbox. Common checks include whether the mailbox address is correct, the administrator has sufficient rights, and the group already has a permission entry. Use Get-MailboxFolderPermission to inspect the Inbox entry.




