Commands › Exchange Online

Get-MailboxFolderPermission

Exchange Online ExchangeOnlineManagement Get-*

View folder-level permissions in mailboxes. **Note**: In Exchange Online PowerShell, we recommend that you use the Get-EXOMailboxFolderPermission cmdlet instead of this cmdlet. For more information, see Connect to Exchange Online PowerShell.

Quick start script

# Get-MailboxFolderPermission — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-MailboxFolderPermission -Identity <MailboxFolderIdParameter> | Format-List

# 3. Export for evidence / drift tracking
Get-MailboxFolderPermission | Export-Clixml .\MailboxFolderPermission-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-MailboxFolderPermission [-Identity] <MailboxFolderIdParameter>
 [-DomainController <Fqdn>]
 [-GroupMailbox]
 [-ResultSize <Unlimited>]
 [-SkipCount <Int32>]
 [-UseCustomRouting]
 [-User <MailboxFolderUserIdParameter>]
 [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-Identity MailboxFolderIdParameter yes The Identity parameter specifies the mailbox folder that you want to view. The syntax is `MailboxID:\ParentFolder[\SubFolder]`.
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-GroupMailbox SwitchParameter The GroupMailbox switch is required to return Microsoft 365 Groups in the results. You don't need to specify a value with this switch.
-ResultSize Unlimited This parameter is available only in the cloud-based service.
-SkipCount Int32 This parameter is available only in the cloud-based service.
-UseCustomRouting SwitchParameter This parameter is available only in the cloud-based service.
-User MailboxFolderUserIdParameter The User parameter filters the results by the specified mailbox, mail user, or mail-enabled security group (security principal) that's granted permission to the mailbox folder.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.