I am invoking https://graph.microsoft.com/v1.0/users
to get users from Azure Active Directory. I have registered an application with Directory.Read.All
and User.ReadBasic.All
permissions for a trial Azure account.
The response of this endpoint contains user information. Each user contains some basic fields (id
, displayName
, mail
). Here, even though I have set email id of the user, mail
field is coming null every time.
I need to know "do I need to purchase the azure subscription or office 365 subscription to get these mail fields enabled".
In short, how can I get these email fields non-null while calling the above API.