Hi @KAMALPREET KAUR ,
Thanks for reaching out.
I understand you are looking to add optional claims ctry and tenant_ctry in your Azure AD application to get the value in token.
what is the source of these optional claims - ctry , tenant_ctry?
ctry claim - You can add the optional claim ctry to get the country of the user who logged in to your application. This value will come in the ID token which contains claims about the user. This value needs to be added while adding the user in Azure AD. If this value is null, optional claim ctry will not reflect in the token.
tenant_ctry - This is the value of country, set while creating the tenant. This value will retrieve the country of the tenant where your application is registered.
Also will it always represent 2 letter code of a country? it won't be a region like NA- north america
Yes, these values need to be present as standard two-letter country/region code only to retrieve in optional claims. i.e IN, US, NA
User's Information added:
Optional claim ctry value in ID token:
Hope this will help.
Thanks,
Shweta
-------------------
Please remember to "Accept Answer" if answer helped you.