How to assign custom user attributes to B2C users?

hampton123 1,175 Reputation points
2024-05-28T18:26:50.19+00:00

I'm looking to assign custom attributes to each of my B2C users, such as job titles, to assign different permissions in my application. I've created the custom attribute "JobTitle" in B2C, but I don't know how to assign individual users a specific string for this attribute. What steps do I need to take to achieve this?

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Akhilesh Vallamkonda 15,320 Reputation points Microsoft External Staff Moderator
    2024-05-30T09:56:03.9733333+00:00

    Hi @hampton123

    Thank you for post!

    To use custom user attribute, you need to create a User Flow as documented here. When you Run User Flow, you need to choose sign-up to create a new user account.

    If you want to assign custom attribute to the existing user that you created from users section, you need to create Profile Update user flow and sign-in with that user to assign value to the custom attribute for that user. Make sure in the profile edit user flow, you select the custom attribute checkbox that you created. When you will run profile edit user flow, you will get an option to specify a value for the custom attribute.
    Hope this helps. Do let us know if you any further queries.

    Thanks,

    Akhilesh.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.