Commands › Exchange Online

Get-LinkedUser

Exchange Online ExchangeOnlineManagement Get-*

View existing linked user accounts.

Quick start script

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

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

Syntax — 2 parameter sets

AnrSet

Get-LinkedUser [-Anr <String>]
 [-Filter <String>]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-ResultSize <Unlimited>]
 [-SortBy <String>]
 [<CommonParameters>]

Identity

Get-LinkedUser [[-Identity] <UserIdParameter>]
 [-Filter <String>]
 [-OrganizationalUnit <OrganizationalUnitIdParameter>]
 [-ResultSize <Unlimited>]
 [-SortBy <String>]
 [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-Identity UserIdParameter The Identity parameter specifies the linked user that you want to view. You can use any value that uniquely identifies the linked user. For example:
-Anr String The Anr parameter specifies a string on which to perform an ambiguous name resolution (ANR) search. You can specify a partial string and search for objects with an attribute that matches that string. The default...
-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'"`.
-OrganizationalUnit OrganizationalUnitIdParameter This parameter is reserved for internal Microsoft use.
-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.
-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.