Search Results for

    Show / Hide Table of Contents

    Grant-PnPTenantServicePrincipalPermission

    SYNOPSIS

    Required Permissions

    • SharePoint: Access to the SharePoint Tenant Administration site
    • Microsoft Graph API : Directory.ReadWrite.All

    Explicitly grants a specified permission to the "SharePoint Online Client Extensibility Web Application Principal" service principal for SPFx solutions.

    SYNTAX

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

    DESCRIPTION

    Allows to grant a specified permission o the "SharePoint Online Client Extensibility Web Application Principal" service principal for SPFx solutions.

    EXAMPLES

    EXAMPLE 1

    Grant-PnPTenantServicePrincipalPermission -Scope "Group.Read.All"
    

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

    PARAMETERS

    -Scope

    The scope to grant the permission for

    Type: String
    Parameter Sets: (All)
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Resource

    The resource to grant the permission for. Defaults to "Microsoft Graph"

    Type: String
    Parameter Sets: (All)
    
    Required: True
    Position: Named
    Default value: Microsoft Graph
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -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
    

    RELATED LINKS

    Microsoft 365 Patterns and Practices

    Back to top Generated by DocFX spacer