Commands › SharePoint Online

Remove-SPOGeoAdministrator

SharePoint Online Microsoft.Online.SharePoint.PowerShell Remove-*

Removes a new SharePoint user or security Group in the current Multi-Geo Tenant.

Quick start script

# Remove-SPOGeoAdministrator — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SPOGeoAdministrator
$before | Format-List

# 3. Make the change
Remove-SPOGeoAdministrator -GroupAlias <String> -ObjectId <Guid> -UserPrincipalName <String>

# 4. Verify and diff
$after = Get-SPOGeoAdministrator
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax — 3 parameter sets

User (Default)

Remove-SPOGeoAdministrator [-UserPrincipalName] <String> [<CommonParameters>]

Group

Remove-SPOGeoAdministrator [-GroupAlias] <String> [<CommonParameters>]

ObjectId

Remove-SPOGeoAdministrator [-ObjectId] <Guid> [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-GroupAlias String yes The login name of the security group to be removed.
-ObjectId Guid yes The ID of the user or security group to be removed.
-UserPrincipalName String yes The login name of the user to be removed.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.