Microsoft Graph API User custom property

六月ゝ 毕业季﹏ 提交于 2019-12-23 12:30:14

问题


I need to access custom properties on the user object via the graph api. Currently the documentation shows the properties that can be accessed in the "Update User" section of the v1.0: http://graph.microsoft.io/docs/api-reference/v1.0/api/user_update . I'm using this call to get the current logged in user and properties, but I can't seem to 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 on one of our custom properties that maps back to RefinableString23, but that doesn't seem to want to work. Does anyone know if it's even possible to access custom properties and if so what I may be doing wrong.


回答1:


As well as the extensions that are possible on messages, events and contacts, you can also extend entities such as users and groups through Azure AD, as Marek was suggesting (link to more up to date doc is here: https://msdn.microsoft.com/en-us/library/azure/ad/graph/howto/azure-ad-graph-api-directory-schema-extensions).

Viewing/updating those extension property values is possible through MS Graph API. Microsoft Graph does not expose a way to register new extensions yet - for that you would still need to use Azure AD Graph API.

Hope this helps,



来源:https://stackoverflow.com/questions/34725229/microsoft-graph-api-user-custom-property

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!