Revoke-PnPAzureADAppSitePermission
SYNOPSIS
Required Permissions
- Microsoft Graph API: Sites.FullControl.All
Revokes permissions for a given app.
SYNTAX
Revoke-PnPAzureADAppSitePermission -PermissionId <String> [-Site <SitePipeBind>] [-Connection <PnPConnection>]
DESCRIPTION
This cmdlets revokes permissions for a given app in a site.
EXAMPLES
EXAMPLE 1
Revoke-PnPAzureADAppSitePermission -PermissionId ABSDFefsdfef33fsdFSvsadf3e3fsdaffsa
Revoke permission specified with the Id.
PARAMETERS
-Connection
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PermissionId
Specify the permission id that should be revoked.
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Site
Optional url to a site to set the permissions for. Defaults to the current site.
Type: SitePipeBind
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False