Get-SPOCrossGeoUsers
Returns the SharePoint Online users in a multi-geo tenant that match the criteria.
Syntax
Default (Default)
Get-SPOCrossGeoUsers
-ValidDataLocation <Boolean>
[<CommonParameters>]
Description
The Get-SPOCrossGeoUsers cmdlet is used to return the SharePoint Online users that match a given criteria. The ValidDataLocation parameter is a switch used to validate the ___location of the data. This cmdlet requires a connection to a multi-geo tenant to run correctly. You must have the SharePoint Online Admin role to execute this cmdlet.
Examples
EXAMPLE 1
Get-SPOCrossGeoUsers -ValidDataLocation $true
Returns all of the SharePoint Online users in a multi-geo tenant and validates the data ___location.
EXAMPLE 2
Get-SPOCrossGeoUsers
Returns all of the SharePoint Online users in a multi-geo tenant without validating data ___location.
EXAMPLE 3
Get-SPOCrossGeoUsers -ValidDataLocation $true | where {$_.UserPrincipalName -eq 'jane@contoso.com'}
Returns a single user from SharePoint Online in a multi-geo tenant and validates the data ___location.
Parameters
-ValidDataLocation
Applicable: SharePoint Online
Use this parameter to validate the ___location of the data. The acceptable values for this parameter are:
- $False
- $True
Parameter properties
Type: | System.Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.