When trying to GET mail url https://graph.microsoft.com/v1.0/me
I keep getting responses like "mail:null"
.
The full response is as follows:
{
"@odata.context": "https://graph.microsoft.com/v1.0/",
"@odata.type": "#microsoft.graph.user",
"@odata.id": "users/XXXXXXXXX",
"businessPhones": ["XXXXXXXX"],
"displayName": "XXXX XXXX",
"givenName": "XXXX",
"jobTitle": null,
"mail": null,
"mobilePhone": "XXXXXXXX",
"officeLocation": null,
"preferredLanguage": "en-US",
"surname": "XXXXXXX",
"userPrincipalName": "[email protected]",
"id": "XXXXX-XXXXX-XXXXX"
}
Does anybody know why it won't return with the full profile info? I am using version 1.0.
mail
because is an alternative email, I would like to be able to get it as well. I cannot find a way to makeotherMails
return because it appears in the newer API it is no longer an available field. – Gustavo Alfonso