Azure AD B2C | Attributes Length

Abhay Chandramouli 1,056 Reputation points
2022-06-28T17:00:50.077+00:00

Hi
I want to know the maximum characters we can enter in Azure AD B2C user details like

userPrincipalName
firstName
lastName
mobile
email
custom attributes

etc.

Can we modify these custom or built in attributes ?
If yes can you please suggest how ? Either using Graph ApI Az cli or portal

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 27,221 Reputation points Microsoft Employee Moderator
    2022-06-28T19:01:18.35+00:00

    Hi anonymous user , thanks for the question. All AAD B2C attribute limits can be found here. The limits are assigned to their type, unless stated otherwise. For example a "String" value character limit is 256 so userPrincipalName's limit is 256. However, surname is also a string but its limit is 64 (since it's explicitly stated).

    And yes, you can create custom attributes by following this document.

    Please let me know if you have any questions.

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,
    James


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.