Commands › Exchange Online

Get-AdaptiveScopeMembers

Exchange Online ExchangeOnlineManagement Get-*

Retrieve current and past members of adaptive scopes in your organization. Adaptive scopes are used in retention policies, Insider Risk Management policies and retention label policies.

Quick start script

# Get-AdaptiveScopeMembers — 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-AdaptiveScopeMembers -Identity <ComplianceRuleIdParameter> -AdaptiveReportQuery <String> -PageCookie <string> | Format-List

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

Syntax — 4 parameter sets

Identity (Default)

Get-AdaptiveScopeMembers [-Identity] <ComplianceRuleIdParameter> [<CommonParameters>]

Default

Get-AdaptiveScopeMembers [-Identity] <ComplianceRuleIdParameter>
 [-AdaptiveReportFilters <PswsHashtable>]
 [-EndDateTime <DateTimeOffset>]
 [-PageResultSize <UnlimitedInt>]
 [-StartDateTime <DateTimeOffset>]
 [-State <LocationState>]
 [<CommonParameters>]

AdaptiveReportQuery

Get-AdaptiveScopeMembers [-Identity] <ComplianceRuleIdParameter> -AdaptiveReportQuery <String> [<CommonParameters>]

AdaptiveReportPagination

Get-AdaptiveScopeMembers [-Identity] <ComplianceRuleIdParameter> -PageCookie <string> [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-Identity ComplianceRuleIdParameter yes The Identity parameter specifies the adaptive scope. You can use any value that uniquely identifies the adaptive scope. For example:
-AdaptiveReportQuery String yes {{ Fill AdaptiveReportQuery Description }}
-AdaptiveReportFilters PswsHashtable The AdaptiveReportFilters parameter specifies one or more filters used to refine the results.
-EndDateTime DateTimeOffset {{ Fill EndDateTime Description }}
-PageCookie string yes The PageCookie specifies the bookmark where the cmdlet should continue retrieving results from.
-PageResultSize UnlimitedInt The PageResultSize parameter specifies the maximum number of members to return for the request.
-StartDateTime DateTimeOffset {{ Fill StartDateTime Description }}
-State LocationState The State parameter specifies the state of the members of the adaptive scope. Valid values are:

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