Understanding Using Graph API to Obtain Extended Attributes

Asked 2 months ago, Updated 2 months ago, 2 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/[email protected] 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


© 2022 OneMinuteCode. All rights reserved.