Commands › SharePoint Online

Deny-SPOTenantServicePrincipalPermissionRequest

SharePoint Online Microsoft.Online.SharePoint.PowerShell Deny-*

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

Quick start script

# Deny-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
Deny-SPOTenantServicePrincipalPermissionRequest -RequestId <Guid> | Format-List

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

Syntax

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

Parameters (3)

ParameterTypeRequiredWhat it controls
-RequestId Guid yes The ID of the permission request to deny
-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.