Commands › Exchange Online

Get-ManagementRoleEntry

Exchange Online ExchangeOnlineManagement Get-*

Retrieve management role entries that have been configured on management roles.

Quick start script

# Get-ManagementRoleEntry — 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-ManagementRoleEntry -Identity <RoleEntryIdParameter> | Format-List

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

Syntax

Get-ManagementRoleEntry [-Identity] <RoleEntryIdParameter>
 [-DomainController <Fqdn>]
 [-Parameters <String[]>]
 [-PSSnapinName <String>]
 [-ResultSize <Unlimited>]
 [-Type <ManagementRoleEntryType[]>]
 [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-Identity RoleEntryIdParameter yes The Identity parameter specifies the role entry that you want to view. This parameter uses the syntax: `<management role>\<role entry name>` (for example, `CustomRole\Set-Mailbox`).
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-Parameters String[] The Parameters parameter includes only the role entries that contain the parameters specified. You can specify multiple parameters, separated by commas. You can use the wildcard character (\*) with partial parameter...
-PSSnapinName String The PSSnapinName parameter specifies the Windows PowerShell snap-in that contains the role entry to return. Use the Get-PSSnapin cmdlet to retrieve a list of available Windows PowerShell snap-ins.
-ResultSize Unlimited This parameter is available only in the cloud-based service.
-Type ManagementRoleEntryType[] The Type parameter specifies the type of role entry to return. The valid values for the Type parameter are any combination of the following parameters, separated by commas: Cmdlet, Script and ApplicationPermission.

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