Microsoft Graph extensionAttributes are null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 12:52 AM
Hi there,
We are trying to update Locations, Departments and some other data from the Azure AD in ServiceNow via the Microsoft Graph connection. The connection itself is there and we are successfully getting the "Bearer" token.
But when we try to GET the list of Users with extensionAttributes the response is:
{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users(id,displayName,onPremisesExtensionAttributes)","@odata.nextLink":"https://graph.microsoft.com/v1.0/users?$select=id%2cdisplayName%2conPremisesExtensionAttributes&$ski...","value":[{"id":"9f2d5369-a190-45f0-bbaa-d793be8f4572","displayName":"1019428261","onPremisesExtensionAttributes":{"extensionAttribute1":null,"extensionAttribute2":null,"extensionAttribute3":null,"extensionAttribute4":null,"extensionAttribute5":null,"extensionAttribute6":null,"extensionAttribute7":null,"extensionAttribute8":null,"extensionAttribute9":null,"extensionAttribute10":null,"extensionAttribute11":null,"extensionAttribute12":null,"extensionAttribute13":null,"extensionAttribute14":null,"extensionAttribute15":null}},{"id":"c79d169d-99cc-46ad-ab4d-31b223f50534","displayName":"1050020239","onPremisesExtensionAttributes":{"extensionAttribute1":null,"extensionAttribute2":null,"extensionAttribute3":null,"extensionAttribute4":null,"extensionAttribute5":null,"extensionAttribute6":null,"extensionAttribute7":null,"extensionAttribute8":null,"extensionAttribute9":null,"extensionAttribute10":null,"extensionAttribute11":null,"extensionAttribute12":null,"extensionAttribute13":null,"extensionAttribute14":null,"extensionAttribute15":null}},{"id":"150e7752-cfbf-4ce8-b410-0a7c7303ad13","displayName":"\u9c81\u534e \u5b59","onPremisesExtensionAttributes":{"extensionAttribute1":null,"extensionAttribute2":null,"extensionAttribute3":null,"extensionAttribute4":null,"extensionAttribute5":null,"extensionAttribute6":null,"extensionAttribute7":null,"extensionAttribute8":null,"extensionAttribute9":null,"extensionAttribute10":null,"extensionAttribute11":null,"extensionAttribute12":null,"extensionAttribute13":null,"extensionAttribute14":null,"extensionAttribute15":null}},{"id":"e45c7d5a-b33a-483e-8a2f-b6e96af7cb0d","displayName":"1326kdockx","onPremisesExtensionAttributes":{"extensionAttribute1":null,"extensionAttribute2":null,"extensionAttribute3":null,"extensionAttribute4":null,"extensionAttribute5":null,"extensionAttribute6":null,"extensionAttribute7":null,"extensionAttribute8":null,"extensionAttribute9":null,"extensionAttribute10":null,"extensionAttribute11":null,"extensionAttribute12":null,"extensionAttribute13":null,"extensionAttribute14":null,"extensionAttribute15":null}}, etc.
HTTP Status is 200 and Endpoint is https://graph.microsoft.com/v1.0/users?$select=id,displayName,onPremisesExtensionAttributes
If we try to read any User, not the list of Users, the extensionAttributes are there.
Permissions given are User.Read.All.
Also weird, that we receive back a hundred of Users, not all 17000, but perhaps it's the limitation of the Testing functionality in the REST Message.
Any ideas anyone how can we read all Users extensionAttributes ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 02:37 AM
Can you check if it will work when you set the permissions to Directory.Read.All?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 12:56 AM
Hello Mark,
Thank you for the suggestion. Assigned Directory.Read.All, still the same "null" value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2024 10:09 AM