无法从Azure读取某些用户属性 [英] Can't read some user attributes from Azure

查看:67
本文介绍了无法从Azure读取某些用户属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Azure读取用户对象的某些属性(例如"otherHomePhone","extensionAttribute9"或"onPremisesSamAccountName"),但是它没有成功.用户帐户通过Azure AD同步 连接,默认的同步规则正在设置列出的属性.在AD Connect中,我可以在metaverse和两个连接器空间(包括用于Azure域的连接器)中看到具有正确值的属性.

I'm trying to read some properties of user objects from Azure (like, for example, "otherHomePhone", "extensionAttribute9" or "onPremisesSamAccountName"), but it doesn't succeed. The user accounts are synchronized via Azure AD Connect, the listed properties are being set by default synchronization rules. In AD Connect I can see the properties with correct values in the metaverse and in both connector spaces, including the one for Azure domain.

但是我无法从Azure中获得这些属性值.我试过PS命令集Get-AzureADUser,也可以通过Graph API直接查询-没有成功.通过Graph查询时,我使用了"$ select" OData参数(如此处所述:https://developer.microsoft.com/zh-cn/graph/docs/api-reference/v1.0/api/user_get) 指定要返回的属性-它确实可以工作,例如,对于"displayName"属性,但不适用于"extensionAttribute9"属性或其他任何列出的内容.

But I can't get these property values back from Azure. I've tried PS commandlet Get-AzureADUser, and also direct query via Graph API - no success. When querying via Graph, I've used "$select" OData parameter (as described here: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_get) to specify properties to return - it does work, for example, for "displayName" property, but not for "extensionAttribute9" or any other listed.

那么读取这些值的方法是什么?

So what is the way to read these values?

推荐答案

"extensionAttribute9"现在可以通过Beta端点使用,请参见此处: https://blogs.technet.microsoft.com/poshchap/2018/07/25/use-microsoft-graph-to-check-synchronized-on-premises-ad-extensionattributes1-15/

"extensionAttribute9" is available via the beta endpoint now, see here: https://blogs.technet.microsoft.com/poshchap/2018/07/25/use-microsoft-graph-to-check-synchronised-on-premises-ad-extensionattributes1-15/

onPremisesSamAccountName也一样. otherHomePhone似乎不可用.

Same goes for onPremisesSamAccountName. otherHomePhone doesn't seem to be available.


这篇关于无法从Azure读取某些用户属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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