Skip to content

[BUG] - SharePoint Delegated Sites.Selected #5139

@a1mery

Description

@a1mery

Reporting an Issue or Missing Feature

Cannot use SharePoint Delegated Sites.Selected permission

Expected behavior

When executing the following:
connect-pnpOnline -Url "https://[tenant].sharepoint.com/sites/site1" -Interactive -ClientId "[app clientid]" Get-PnPSite

I get information about the current site.

App I'm using has Sites.Selected delegated SharePoint permission and was created following: Manually create an app registration for interactive login

Image

Actual behavior

Get-PnPSite returns:
Get-PnPSite: Attempted to perform an unauthorized operation.

Steps to reproduce behavior

  1. Create an app registration following: Manually create an app registration for interactive login
  2. Grant necessary permission using: Grant-PnPAzureADAppSitePermission -AppId "[app clientid]" -DisplayName "[app name]" -Permissions FullControl -Site "https://[tenant].sharepoint.com/sites/site1"

What is the version of the Cmdlet module you are running?

3.1.195

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions