Getting "The tenant for tenant guid" when trying to get profile photo for B2C user

Daniel Friesen 21 Reputation points

I'm using Azure AAD B2C and trying to get the profile photo of a user. The guides are a mess but I got this far.

First I make the following request to get an access token to use as the bearer Authorization header in the subsequent requests.

client_id=<client id>

Calling successfully gets me a list of the users in the B2C tenant.

Calling<oid> also successfully gets me the user information.

However when I try to call<oid>/photo/$value I get the following error:

  "error": {
    "code": "OrganizationFromTenantGuidNotFound",
    "message": "The tenant for tenant guid '...' does not exist.",
    "innerError": {
      "requestId": "...",
      "date": "2020-09-30T05:20:40",
      "request-id": "...",
      "client-request-id": "..."
Azure Active Directory External Identities
No comments
{count} votes

Accepted answer
  1. Alfredo Revilla (MSFT) 16,051 Reputation points Microsoft Employee

    The photo endpoint is not part of the supported MS Graph operations.

    Please let us know if this answer was helpful to you. If so, please remember to mark it as the answer so that others in the community with similar questions can more easily find a solution.

    No comments

0 additional answers

Sort by: Most helpful