Approve-PnPTenantServicePrincipalPermissionRequest

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

Syntax

Approve-PnPTenantServicePrincipalPermissionRequest
       -RequestId <GuidPipeBind>
                                                         [-Force [<SwitchParameter>]]
                                                         [-Connection <SPOnlineConnection>]

Description

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

The return value of a successful call is a permission grant object.

To get the collection of permission grants for the "SharePoint Online Client" service principal, use the Get-PnPTenantServicePrincipalPermissionGrants command.

Approving a permission request also removes that request from the list of permission requests.

Required Parameters

-RequestId
Type:GuidPipeBind
Position:Named
Accept pipeline input:False
Accept wildcard characters:False

Optional 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