Hi @CPO , you can use Azure AD and specify your own claim type and value. Here are the steps to configure this:
- In the Azure portal, navigate to your Azure AD tenant and select "App registrations" from the left-hand menu.
- Select the application that you want to configure optional claims for.
- Under "Manage", select "Token configuration".
- Under "Optional claims", select "Add optional claim".
- Select "ID" as the token type.
- In the "Name" field, enter the name of your custom claim type. For example, "HomeDirectory".
- In the "Source" field, select "Attribute".
- In the "Source attribute" field, enter the name of the attribute in the user object that you want to use as the value for the claim. For example, "homeDirectory".
- Select "Save" to save your changes.
Once you have configured your optional claim, it will be included in the JWT that is issued by Azure AD when a user signs in to your application. Your application can then use the information in the claim to provide personalized experiences for the user. More information here.
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