question

GAUTAMSHARMA-3159 avatar image
0 Votes"
GAUTAMSHARMA-3159 asked amanpreetsingh-msft edited

Custom Attibute not getting Saved

Hi Team

I have created a Sign up and sign in user flow in which i have added some custom attributes to be captured as part of user signup , when user goes for a Signup option he enter value for those custom attribute but when i am checking those value using Graph explorer i am not able to see custom attribute and there value in there .

Can someone please suggest what can be cause behind this

azure-ad-b2cazure-ad-graph-deprecation
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered amanpreetsingh-msft edited

Hi @GAUTAMSHARMA-3159 • Thank you for reaching out.

The custom/extension attributes for the users are stored in Azure AD as extension_guid_attributeName e.g. If you have a custom attribute named codename, it will be displayed as extension_2ad62ac45xxxxxxxxefd85dea302d1b5_codename in the result of your graph call, where 2ad62ac45xxxxxxxxefd85dea302d1b5 is the app id of the B2C extensions app.

Make sure you are using the below call and looking for the attribute in extension_guid_attributeName format.

GET https://graph.microsoft.com/beta/users/object_id_of_the_user
or
GET https://graph.microsoft.com/v1.0/users/object_id_of_the_user?$select=displayname,extension_2ad62ac45xxxxxxxxefd85dea302d1b5_codename


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.