This policy in my Azure B2C always retuning claim "oid" in token, but I don't want

DMarcelino 0 Reputation points
2024-09-23T00:32:42.3533333+00:00

  

  

  

  
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,904 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Navya 11,225 Reputation points Microsoft Vendor
    2024-09-25T10:36:30.86+00:00

    Hi @DMarcelino

    Thank you for posting this in Microsoft Q&A.

    I understand that you want to exclude oid parameter from token in azure B2C tenant.

    "oid" represents the immutable identifier for an object in the Microsoft identity system, in this case, a user account. This ID uniquely identifies the user across applications - two different applications signing in the same user will receive the same value in the oid claim. The Microsoft Graph will return this ID as the id property for a given user account. Because the oid allows multiple apps to correlate users, the profile scope is required in order to receive this claim. Note that if a single user exists in multiple tenants, the user will contain a different object ID in each tenant - they are considered different accounts, even though the user logs into each account with the same credentials.

    Unfortunately, there is no possible way to exclude oid in access token.

    For more information: https://learn.microsoft.com/en-us/entra/identity-platform/access-token-claims-reference

    Hope this helps. Do let us know if you any further queries.

    Thanks,

    Navya.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.