Commands › Exchange Online

Get-RoleAssignmentPolicy

Exchange Online ExchangeOnlineManagement Get-*

View existing management role assignment policies in your organization.

Quick start script

# Get-RoleAssignmentPolicy — 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-RoleAssignmentPolicy | Format-List

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

Syntax

Get-RoleAssignmentPolicy [[-Identity] <MailboxPolicyIdParameter>]
 [-DomainController <Fqdn>]
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Identity MailboxPolicyIdParameter The Identity parameter specifies the name of the assignment policy to view. If the name contains spaces, enclose the name in quotation marks (").
-DomainController Fqdn This parameter is available only in on-premises Exchange.

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