Microsoft Graph API User Interface User Property

I need to access the user properties of a user object through an api chart. Currently, the documentation shows properties that may be available in the "Update User" v1.0 section: http://graph.microsoft.io/docs/api-reference/v1.0/api/user_update . I use this call to get the currently logged in user and properties, but I cannot get any custom properties to work:

https://graph.microsoft.com/v1.0/me?$select=aboutMe,birthday,city,country,department,displayName,givenName,hireDate,interests,jobTitle,mobilePhone,officeLocation,pastProjects,postalCode,preferredLanguage,preferredName,responsibilities,schools,skills,state,streetAddress,surname,usageLocation,userPrincipalName,userType

I checked one of our custom properties, which returns to RefinableString23, but it doesn't seem to work. Does anyone know if access to user properties is even possible, and if so, what can I do wrong.

+4
source share
1 answer

In addition to the extensions that are possible in messages, events, and contacts, you can also expand objects such as users and groups through Azure AD, as Marek suggested (a link to a more modern document is here: https://msdn.microsoft.com/ en-us / library / azure / ad / graph / howto / azure-ad-graph-api-directory-schema-extensions ).

Viewing / updating extension property values ​​is possible through the MS Graph API. Microsoft Graph does not disclose how to register new extensions - for this you will still have to use the Azure AD Graph API.

Hope this helps,

+3

Source: https://habr.com/ru/post/1623783/


All Articles