Revoke-PnPTenantServicePrincipalPermission

Revokes a permission that was previously granted to the "SharePoint Online Client" service principal.

Syntax

Revoke-PnPTenantServicePrincipalPermission
      -ObjectId <String>
                                                [-Force [<SwitchParameter>]]
                                                [-Connection <SPOnlineConnection>]

Description

Revokes a permission that was previously granted to the "SharePoint Online Client" service principal.

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:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Force

Specifying the Force parameter will skip the confirmation question.

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-ObjectId
Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False