Deny-SPOTenantServicePrincipalPermissionRequest
Denies a permission request for the current tenant's "SharePoint Online Client" service principal
Syntax
Deny-SPOTenantServicePrincipalPermissionRequest
-RequestId <Guid>
Description
Denies a permission request for the current tenant's "SharePoint Online Client" service principal
Denying a permission request removes that request from the list of permission requests.
Examples
------------------EXAMPLE 1------------------
$requests = Get-SPOTenantServicePrincipalPermissionRequests
$requestToDeny = $requests | ? { $_.Resource -eq 'Office 365 SharePoint Online' -and $_.Scope -eq 'MyFiles.Read' } | Select-Object -First 1
if ($requestToDeny -ne $null)
{
Deny-SPOTenantServicePrincipalPermissionRequest -RequestId $requestToDeny.Id
}
Denies the permission request for the 'Office 365 SharePoint Online' resource with scope claim 'MyFiles.Read'. If there is no request with those properties, then no deny action will be taken.
Parameters
-RequestId
The ID of the permission request to deny
Type: | Guid |
Position: | Named |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |