I'm tring to get data of signed in user from microsoft azure using GraphServiceClient
My app registration permissions:
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:
API Permissions for my app:
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?