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.