Understanding Using Graph API to Obtain Extended Attributes

Asked 2 years ago, Updated 2 years ago, 38 views

I synchronized it with Azure using AD Connect.
US>Synchronized Extended Attributes
extension_{ID}_{attribute_name}

I am having trouble getting through the Graph API.

Old API
https://graph.windows.net/myorganization/users
I can get it here, but

https://graph.microsoft.com/v1.0/users
Since it cannot be obtained by any means, is it supported in the first place?
Please let me know if you know.

api

2022-09-30 11:48

1 Answers

Sorry for the comments.
Resolved.

It seems to have been a permission issue.


by giving Directory.ReadWrite.All (although only Read seems to work) You can now retrieve it.

https://graph.microsoft.com/v1.0/users/xxxxxx@s ample.com?$select=id,extension_xxxxxxx_msDS_PhoneticLastName
{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(id,extension_xxxxxxx_msDS_PhoneticLastName)/$entity",
    "id": "xxxxxxxx",
    "extension_xxxxxxxx_msDS_PhoneticLastName": "furi_hoge"
}


2022-09-30 11:48

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.