Pulling attributes from Azure AD user accounts, custom

dtd646 66 Reputation points
2020-10-26T21:33:23.897+00:00

My user accounts are setup with on premise AD servers but sync to Azure AD. I need a custom application to query Azure AD to get some standard field like name, manager, etc. I also need to have it pull custom attributes from on prem OR custom attributes from Azure AD. Custom attribute examples are team, group, team number, etc. Not sure where to put the custom attributes yet, depends on the solution that I can get to query them. Can someone explain or send me to the link that best fits this scenario? Been looking at Azure AD APIs but not finding great documentation thus far.

Thanks

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,175 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,113 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leo Visser 91 Reputation points MVP
    2020-10-27T02:02:53.03+00:00

    You probably want to use the graph api then.
    https://learn.microsoft.com/en-us/graph/api/resources/azure-ad-overview?view=graph-rest-1.0

    Here is also a link to the get user part
    https://learn.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http

    If you are using adconnect it's possible to also sync custom attributes to azure. Graph should be able to query them too, but using non extension attributes makes your life a lot easier.

    0 comments No comments

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.