How to add custom Attributes to user profile in AZURE AD and what are the APIs to fetch the user profile with the attributes added?

Abibalaji Veerakumar 0 Reputation points
2023-05-13T14:22:39.1966667+00:00

Hi team,
Am trying to add custom attribute fields to all user profiles in Azure AD.

What are the steps to be followed for that and what are the APIs that expose me those values / user profiles?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
{count} votes

4 answers

Sort by: Most helpful
  1. Sandeep G-MSFT 20,906 Reputation points Microsoft Employee Moderator
    2023-05-19T06:19:43.4233333+00:00

    @Abibalaji Veerakumar

    When it comes to adding custom user attributes within Azure AD, you can do this through the Azure portal and use them in your self-service sign-up user flows, or you can also read and write these attributes by using the Microsoft Graph API. For more info - Define custom attributes for user flows.

    Create a custom attribute:

    1. Sign in to the Azure portal as an Azure AD administrator.
    2. Under Azure services, select Azure Active Directory.
    3. In the left menu, select External Identities.
    4. Select Custom user attributes.
    5. To add an attribute, select Add.
    6. Fill in the add attribute information page and create.

    261642-image.png

    I hope this helps!

    Let me know if you have any further questions.

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

    2 people found this answer helpful.
    0 comments No comments

  2. CarlZhao-MSFT 46,371 Reputation points
    2023-05-15T08:13:38.7766667+00:00

    Hi @Abibalaji Veerakumar

    As far as I know, this does not apply to standard Azure AD tenants, "adding custom user attributes and using graph API management" is the category of Azure AD B2C tenants.

    You can add custom attributes to a user by updating the user:

    User's image

    Get custom user attributes:

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

  3. Abibalaji Veerakumar 0 Reputation points
    2023-05-16T06:02:50.37+00:00

    Hi Carl,
    Is there a configuration screen which would help us add these custom attributes?

    Other than the PATCH API?


  4. Ali Mohamed 0 Reputation points
    2024-08-29T11:03:04.79+00:00

    pro is your problem solved?

    0 comments No comments

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.