Replies: 2 comments 1 reply
-
|
It looks like your account is not having the correct permissions, which would be impossible if it is a Global Admin... |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yannick,
Once again, thank you very much for your help on this issue.
The issue appears to have been down to the permissions that the "admin" had
available. He did not have global tenant privileges hence the request was
coming back as "unauthorised". I realise this is out-of-scope of what you
write on Github, but I wonder if it may be useful to those who may be new
to AzureAD / GraphAPI.
Thanks again,
Martin
…On Sat, Apr 23, 2022 at 12:55 PM Yannick Reekmans ***@***.***> wrote:
It looks like your account is not having the correct permissions, which
would be impossible if it is a Global Admin...
Could you try the M365 CLI and see if you have the same issue?
—
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASZD3XMDZSMVZHFWBYCVVADVGPQKLANCNFSM5UCXW7BQ>
.
You are receiving this because you authored the thread.Message ID:
<YannickRe/spfx-msgraph-peoplesearch/repo-discussions/57/comments/2620454@
github.com>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
YannickRe
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.
-
Hi, our IT team have implemented MFA and I am struggling to grant the required permissions for the webpart. Having connected to PnP and attempting to run the relevant commands, I get the following error.
We are using an account that is global admin.
PS C:\Windows\system32> Grant-PnPTenantServicePrincipalPermission -Scope "User.Read.All" -Resource "Microsoft Graph"
Grant-PnPTenantServicePrincipalPermission : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
At line:1 char:1
Beta Was this translation helpful? Give feedback.
All reactions