How to assign custom user attributes to B2C users?

hampton123 1,165 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 Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,916 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,104 questions
0 comments No comments
{count} votes

Accepted answer
  1. Akhilesh Vallamkonda 10,080 Reputation points Microsoft Vendor
    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.