Commands › SharePoint Online

Approve-SPOTenantServicePrincipalPermissionRequest

SharePoint Online Microsoft.Online.SharePoint.PowerShell Approve-*

Approves a permission request for the current tenant's "SharePoint Online Client" service principal

Quick start script

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

# 2. Run and inspect
Approve-SPOTenantServicePrincipalPermissionRequest -RequestId <Guid> | Format-List

# 3. Export for evidence / drift tracking
Approve-SPOTenantServicePrincipalPermissionRequest | Export-Clixml .\SPOTenantServicePrincipalPermissionRequest-$(Get-Date -Format yyyyMMdd).xml

Syntax

Approve-SPOTenantServicePrincipalPermissionRequest -RequestId <Guid> [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-RequestId Guid yes The ID of the permission request to approve
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

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