Hi @Vladyslav Boiko , unfortunately adding the mobile phone number as an optional claim in the token configuration section is not currently supported. However, you can use the Graph API to retrieve the user's mobile phone number and prepopulate it in the profile.
Since your application does not have access to the client secret, you can use the on-behalf-of flow to obtain an access token for the Microsoft Graph API. This flow allows your application to exchange the user's access token for an access token that can be used to call the Microsoft Graph API.
- When the user logs in through Azure SSO, your application receives an access token for the user.
- Your application sends a request to the Microsoft Graph API to retrieve the user's profile information, including the mobile phone number.
- The Graph API returns the user's profile information, including the mobile phone number.
- Your application prepopulates the mobile phone number in the user's profile.
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