Commands › Exchange Online

Get-RoleGroupMember

Exchange Online ExchangeOnlineManagement Get-*

Retrieve a list of members of a management role group.

Quick start script

# Get-RoleGroupMember — 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-RoleGroupMember -Identity <RoleGroupMemberIdParameter> | Format-List

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

Syntax

Get-RoleGroupMember [-Identity] <RoleGroupMemberIdParameter>
 [-DomainController <Fqdn>]
 [-ReadFromDomainController]
 [-ResultSize <Unlimited>]
 [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Identity RoleGroupMemberIdParameter yes The Identity parameter specifies the role group for which member information should be retrieved. If the role group name contains spaces, enclose the name in quotation marks (").
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-ReadFromDomainController SwitchParameter This parameter is available only in on-premises Exchange.
-ResultSize Unlimited The ResultSize parameter specifies the maximum number of results to return. If you want to return all requests that match the query, use unlimited for the value of this parameter. The default value is 1000.

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