Replies: 2 comments 3 replies
-
@bckrma I am facing the same issue. Were you able to get this resolved? |
Beta Was this translation helpful? Give feedback.
2 replies
-
How did you granted the permissions to the target site? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello community,
i am currently working on a powershell script executed in a powershell 7.2 azure automation runbook.
The scripts authenticates using a managed identity and the sites.selected permission, but my cmdlets fail with an 401 error.
Before i open an issue for this i would like to make sure my approach is even supported.
Setup
Script
Output:
Is it supported to use a managed identity with the sites.selected permission like this, or is my approach wrong?
Thanks a lot!
EDIT:
I have tested a few more things:
Get-PnPAzureADAppSitePermission -AppIdentity $ManagedIdentityObjectID
Beta Was this translation helpful? Give feedback.
All reactions