Microsoft Graph API用户自定义属性 [英] Microsoft Graph API User custom property

查看:78
本文介绍了Microsoft Graph API用户自定义属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过图形api访问用户对象上的自定义属性.当前,文档显示了可以在v1.0的更新用户"部分中访问的属性:

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

我检查了映射到RefinableString23的自定义属性之一,但这似乎不起作用.有谁知道是否甚至可以访问自定义属性,如果可以,我可能做错了什么.

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.

推荐答案

以及消息,事件和联系人上可能使用的扩展,您也可以按照Marek的建议,通过Azure AD扩展诸如用户和组之类的实体. (有关更多最新文档的链接,请访问:

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).

可以通过MS Graph API查看/更新那些扩展属性值. Microsoft Graph尚未提供注册新扩展的方法-为此,您仍然需要使用Azure AD Graph API.

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.

希望这会有所帮助

这篇关于Microsoft Graph API用户自定义属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆