Commands › Exchange Online

Get-RoleGroup

Exchange Online ExchangeOnlineManagement Get-*

Retrieve a list of management role groups.

Quick start script

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

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

Syntax

Get-RoleGroup [[-Identity] <RoleGroupIdParameter>]
 [-DomainController <Fqdn>]
 [-Filter <String>]
 [-ReadFromDomainController]
 [-ResultSize <Unlimited>]
 [-ShowPartnerLinked]
 [-SortBy <String>]
 [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-Identity RoleGroupIdParameter The Identity parameter specifies the role group to retrieve. If the name of the role group contains spaces, enclose the name in quotation marks (").
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-Filter String The Filter parameter uses OPATH syntax to filter the results by the specified properties and values. The search criteria uses the syntax `"Property -ComparisonOperator 'Value'"`.
-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.
-ShowPartnerLinked SwitchParameter This parameter is functional only in the cloud-based service.
-SortBy String The SortBy parameter specifies the property to sort the results by. You can sort by only one property at a time. The results are sorted in ascending order.

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