Azure AD Self-Service Sign Up Fetch Manager Information

52 views Asked by At

I am looking to setup a self-service signup portal for Azure AD B2B. Only information that's populated during the sign up is Email, Given Name and Surname.

I am looking to auto-fetch some other field like manager, job title, etc. Is there a way I can do this.

1

There are 1 answers

1
Rukmini On

Created a user flow in Azure AD:

enter image description here

I am looking to auto-fetch some other field like manager, job title, etc. Is there a way I can do this.

To populate the custom attributes during sign up, you can add custom attributes refer this MsDoc:

Go to Microsoft Entra ID -> External Identities -> Custom user attributes -> Add

enter image description here

Now go to User flows -> Select your User flow -> User attributes -> Select the custom attribute

enter image description here

I used Postman to test the same:

Auth URL : https://login.microsoftonline.com/TenantID/oauth2/v2.0/authorize
Access Token URL : https://login.microsoftonline.com/TenantID/oauth2/v2.0/token
Client ID : ClientID
Client Secret : ClientSecret
Scope : user.read

enter image description here

When I clicked on Create account, I got the custom attribute populated during sign in like below:

enter image description here

The user got created successfully like below:

enter image description here

Reference:

Add custom attributes to self-service sign-up flows - Microsoft Entra