Replies: 1 comment
-
Never mind, Azure was just slow giving the permissions. Now it works |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I set up an app registration with all the SharePoint permissions with admin consent.
I connect successfully with:
$siteConn = Connect-PnPOnline -Url $siteURL -ClientId $ClientId -CertificatePath $certPath -CertificatePassword $CertPass -Tenant $tenant -ReturnConnection
Then I issue:
Set-PnPListPermission -Identity 'DPCDocuments' -Group '1234.567 Owners' -RemoveRole 'Full Control' -Connection $siteConn
To remove the SharePoint group '1234.567 Owners' from the DPCDocuments library.
and I get an error:
The remote server returned an error: (401) Unauthorized.
What am I missing? Graph API permissions? which?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions