Get-SPOCrossGeoUsers

Returns the SharePoint Online users in a multi-geo tenant that match the criteria.

Syntax

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 be a SharePoint Online global Administrator to run this cmdlet.

Examples

-----------------------EXAMPLE 1-----------------------------

Get-SPOCrossGeoUsers -ValidDataLocation

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.

Parameters

-ValidDataLocation

PARAMVALUE: $true | $false

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online