I am trying to use Microsoft graph API to retrieve the Profile pic from Azure Active directory.
I have used below URL and I am able to get the response successfully. https://graph.microsoft.com/v1.0/users/[email protected]
With the same code I am getting below JSON error when i use below URL to fetch the profile photo information. URL i used: https://graph.microsoft.com/users/[email protected]/photo/$value
Error JSON i got:
{
"error": {
"code": "OrganizationFromTenantGuidNotFound",
"message": "The tenant for tenant guid '<<My Tenant GUID>>' does not exist.",
"innerError": {
"requestId": "a3f7202f-b2c0-47d4-a04d-4b642c6f4188",
"date": "2019-07-17T06:33:46",
"request-id": "a3f7202f-b2c0-47d4-a04d-4b642c6f4188"
}
}
}
Could any please help me on this. Thank you.