"Insufficient privileges to complete the operation" again

267 views Asked by At

I'm tring to get data of signed in user from microsoft azure using GraphServiceClient

My app registration permissions:

enter image description here

Type of registration is:

Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)

ID Token is selected:

enter image description here

API Permissions for my app:

enter image description here

when I try to login by my email ***@hotmail.com, I got my profile, when I try to call:

        var currentUser = await _graphServiceClient.Me.Request().GetAsync();

but for other account, with custom domain (but registered for office365), I got:

ServiceException: Code: Authorization_RequestDenied
Message: Insufficient privileges to complete the operation.

what is different and how to fix it?

0

There are 0 answers