Reputation: 3
Trying to add Azure AD custom attribute and access custom attributes through claims (JWT Access token).
I tried using Azure AD Graph explorer but I got “Updates to converged application are not allowed in this version”.
Here is the request to add custom attributes
{
"name": "employeenumber",
"dataType": "String",
"targetObjects": [
"User"
]
}
Idea is to
1) Add custom attribute using Graph Explorer website-POST (Register extension)
2) Set values for custom attributes suing Graph explorer – PATCH (Alternative use Graph service sdk)
3) Modify applicant manifest of the Azure AD application and return the extension property as claims.
I’m stuck in Step 1.
Any help is appreciated
Upvotes: 0
Views: 4058
Reputation: 16438
The application you have registered is v2.0 version(supports personal account).
Unfortunately, Register an extension only supports v1.0.
You can retry with a v1.0 application.
Microsoft strongly recommends that you use Microsoft Graph instead of Azure AD Graph API to access Azure Active Directory resources.
For how to add custom attribute to Azure AD user with Microsoft Graph API, please refer to: Add custom data to users using open extensions.
Upvotes: 0