What is the maximum length of issuerAssignedId?

Shruthi Gowda 0 Reputation points
2024-10-01T11:44:44.5833333+00:00

What is the maximum length of issuerAssignedId?

The document https://learn.microsoft.com/en-us/graph/api/resources/objectidentity?view=graph-rest-1.0 says it issuer-assigned ID should be less than 64 characters. However, in our test environment, we confirmed that B2C allows email addresses exceeding 64 characters in either the local part or the full address, as long as the total length does not surpass 100 characters.

So we would like to understand more

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,226 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,069 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hitesh Pachipulusu - MSFT 2,915 Reputation points Microsoft Vendor
    2024-10-01T12:25:37.35+00:00

    Hello Shruthi Gowda,

    Thank you for reaching out to Microsoft Support!

    The maximum length of the issuerAssignedId in Microsoft Graph API is generally specified as 64 characters. However, there are some nuances based on the context in which it is used:

    1. For email addresses: When the signInType is set to emailAddress, the issuerAssignedId must be a valid email address. In practice, this means that while the local part of the email address can exceed 64 characters, the total length of the email address should not surpass 100 characters. Please refer to documentation.
    2. For user names: When the signInType is set to userName, the issuerAssignedId must begin with an alphabetical character or number and can only contain alphanumeric characters and certain symbols. The length constraint here is also 64 characters. Please refer to documentation.

    It seems your test environment aligns with these practical constraints, allowing email addresses to exceed 64 characters in the local part or the full address, provided the total length does not exceed 100 characters.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


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.