-
Notifications
You must be signed in to change notification settings - Fork 390
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Actual behavior
Get-PnPSite returns:
Get-PnPSite: Attempted to perform an unauthorized operation.
Steps to reproduce behavior
- Create an app registration following: Manually create an app registration for interactive login
- 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
Labels
bugSomething isn't workingSomething isn't working