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 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for