Skip to content

Latest commit

 

History

History
98 lines (63 loc) · 2.51 KB

File metadata and controls

98 lines (63 loc) · 2.51 KB
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

Get-SPOCrossGeoUsers

SYNOPSIS

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 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
Type: System.Boolean
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

Getting started with SharePoint Online Management Shell

Get-SPOAppErrors

ConvertTo-SPOMigrationTargetedPackage