Hi @Kam Shing Cheung , the max length is 255.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I found that I can user the field "sub" in the ID token as the user identifier from this document: https://learn.microsoft.com/en-us/azure/active-directory/develop/id-tokens
However, I cannot find the max length of the "sub" field .
Could you tell me what is the maximum length of the "sub" field in a token ID, or if there is a recommended string length for storing this value?
Thanks a lot.
Hi @Kam Shing Cheung , the max length is 255.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James