Grant-PnPAzureADAppSitePermission fails with "Microsoft.Online.DirectoryServices.UniqueKeyPropertyException" #1267
Unanswered
LijuV-MSFT
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Did you ever figure it out? I'm also seeing that, albeit with a different app: Tried in two tenants and over a period of a week. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am running into this issue where the Grant-PnPAzureADAppSitePermission cmdlet does not appear to work.
Here are my commands:
As you can tell, there are no visible errors in the output of the command.
It worked once in the past, but all my attempts at running these commands again appear to fail.
Azure AD Audit Logs however show a failed UserManagement event:
The user SPOAdmin is a global admin in the tenant and the primary admin of the SharePoint site.
The only thing I can think of is that I had deleted the PnP Management Shell after my first (successful attempt).
Can anyone shed some light into what's happening here?
Beta Was this translation helpful? Give feedback.
All reactions