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:
- For email addresses: When the
signInType
is set toemailAddress
, theissuerAssignedId
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. - For user names: When the
signInType
is set touserName
, theissuerAssignedId
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.