Commands › SharePoint Online
Remove-SPOGeoAdministrator
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.