Hello Aleks R,
Thank you for contacting Microsoft Support!
For the resolution, you can use MS Graph Explorer https://developer.microsoft.com/en-us/graph/graph-explorer. Ensure that you are login with your global admin account.
- Map the custom attributes with display name. Required Scopes - PeopleSettings.Read.All (Delegated)
POST https://graph.microsoft.com/v1.0/admin/people/profileCardProperties Content-type: application/json; charset=utf-8 { "directoryPropertyName": "CustomAttribute1", "annotations": [ { "displayName": "Team" } ] }
- Once the above executed, you can verify it by calling below endpoint.
GET https://graph.microsoft.com/v1.0/admin/people/profileCardProperties?$select=annotations,directoryPropertyName
- Assigning the user information to the newly created custom attributes. Call below endpoint. *** For assigning/updating a batch users record with these custom attributes, you will need to create a custom code calling the endpoints. Required Scopes - User.ReadWrite (Delegated)
PATCH https://graph.microsoft.com/v1.0/users/{user-id} { "onPremisesExtensionAttributes": { "extensionAttribute1": "team_name" } }
- Verify the assignment value by calling this endpoint.
GET - https://graph.microsoft.com/v1.0/users/{user-id}?$select=onPremisesExtensionAttributes
- You will need to wait at least after 24hours to see the Profile Card with new custom attributes.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.