Grant-PnPTenantServicePrincipalPermission

Explicitly grants a specified permission to the "SharePoint Online Client" service principal

Syntax

Grant-PnPTenantServicePrincipalPermission
     -Scope <String>
                                              -Resource <String>
                                              [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

Grant-PnPTenantServicePrincipalPermission -Scope "Group.Read.All" -Resource "Microsoft Graph"

This will explicitly grant the Group.Read.All permission on the Microsoft Graph resource

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
-Resource

The resource to grant the permission for

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

The scope to grant the permission for

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False

Outputs

OfficeDevPnP.Core.ALM.AppMetadata