| external help file | Microsoft.Online.SharePoint.PowerShell.dll-Help.xml |
|---|---|
| Module Name | Microsoft.Online.SharePoint.PowerShell |
| online version | https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/get-spocrossgeousers |
| applicable | SharePoint Online |
| title | Get-SPOCrossGeoUsers |
| schema | 2.0.0 |
| author | samkabue |
| ms.author | speedta |
| ms.reviewer |
Returns the SharePoint Online users in a multi-geo tenant that match the criteria.
Get-SPOCrossGeoUsers -ValidDataLocation <Boolean> [<CommonParameters>]
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.
Get-SPOCrossGeoUsers -ValidDataLocation $trueReturns all of the SharePoint Online users in a multi-geo tenant and validates the data location.
Get-SPOCrossGeoUsersReturns all of the SharePoint Online users in a multi-geo tenant without validating data location.
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.
Applicable: SharePoint Online
Use this parameter to validate the location of the data. The acceptable values for this parameter are:
- $False
- $True
Type: System.Boolean
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.