Commands › SharePoint Online

Approve-SPOTenantServicePrincipalPermissionGrant

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-SPOTenantServicePrincipalPermissionGrant — 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-SPOTenantServicePrincipalPermissionGrant -Resource <String> -Scope <String> | Format-List

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

Syntax

Approve-SPOTenantServicePrincipalPermissionGrant [-Resource] <String> [-Scope] <String> [-WhatIf] [-Confirm]
 [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Resource String yes Resource of the permission request to add.
-Scope String yes Scope of the permission request to add.
-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.