简体   繁体   English

Microsoft Graph API - Azure AD Connect - extensionAttribute

[英]Microsoft Graph API - Azure AD Connect - extensionAttribute

When I try querying extensionAttribute with Graph API (Hybrid Exchange), I cannot get any value.当我尝试使用 Graph API(混合交换)查询 extensionAttribute 时,我无法获得任何值。

Eg, if I try: https://graph.microsoft.com/v1.0/users/<userid or upn>?$select=extensionAttribute2 , I cannot see the value even I know it's there.例如,如果我尝试: https://graph.microsoft.com/v1.0/users/<userid or upn>?$select=extensionAttribute2 ,即使我知道它在那里,我也看不到该值。

Do you know how to get it properly (or a workaround)?您知道如何正确获取它(或解决方法)吗?

Thank you谢谢

Are these values synced to Azure Active Directory?这些值是否同步到 Azure Active Directory? All properties for the AAD User can be found in the Microsoft Graph API docs here : https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0 AAD 用户的所有属性都可以在此处的 Microsoft Graph API 文档中找到: https : //docs.microsoft.com/en-us/graph/api/resources/user? view = graph-rest- 1.0

It sounds like these are being synced from an AAD Connect environment, so it's most likely you are trying to get the onPremisesExtensionAttributes.听起来这些是从 AAD Connect 环境同步的,因此很可能您正在尝试获取 onPremisesExtensionAttributes。

Per the description:根据描述:

Contains extensionAttributes 1-15 for the user.包含用户的 extensionAttributes 1-15。 Note that the individual extension attributes are neither selectable nor filterable.请注意,单个扩展属性既不可选择也不可过滤。 For an onPremisesSyncEnabled user, this set of properties is mastered on-premises and is read-only.对于 onPremisesSyncEnabled 用户,这组属性在本地掌握并且是只读的。 For a cloud-only user (where onPremisesSyncEnabled is false), these properties may be set during creation or update.对于仅限云的用户(其中​​ onPremisesSyncEnabled 为 false),可以在创建或更新期间设置这些属性。

I suggest taking a look more thoroughly through the documentation in regards to this.我建议更彻底地查看与此相关的文档。 In addition to that, as you mentioned Exchange, note that the custom attributes from exchange are the same as the extension attributes.除此之外,正如您提到的 Exchange,请注意来自 Exchange 的自定义属性与扩展属性相同。 For more info on this see : https://github.com/microsoftgraph/microsoft-graph-docs/issues/5950有关更多信息,请参阅: https : //github.com/microsoftgraph/microsoft-graph-docs/issues/5950

This is a separate sort of "Extension Attribute" but I figured I would include this in the answer as well.这是一种单独的“扩展属性”,但我想我也会将其包含在答案中。 There is a different extensibility section for the Microsoft Graph, and the docs on this can be found here : https://docs.microsoft.com/en-us/graph/extensibility-overview Microsoft Graph 有一个不同的可扩展性部分,可以在此处找到有关此的文档: https : //docs.microsoft.com/en-us/graph/extensibility-overview

If you see information on these extensions, know that this is separate from the on-prem extensions.如果您看到有关这些扩展的信息,请知道这与本地扩展是分开的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure AD 图 API 使用 onPremisesExtensionAttributes [extensionAttribute6] 过滤用户 - Azure AD graph API to filter users with onPremisesExtensionAttributes [extensionAttribute6] Blazor WASM Azure AD 连接到 Microsoft Graph - Blazor WASM Azure AD Connect To Microsoft Graph 带有外部帐户和Microsoft Graph API的Azure AD - Azure AD with external accounts and Microsoft Graph API 使用OpenID Connect / Azure AD从移动设备进行身份验证无法与Microsoft Graph API一起使用 - Authentication from mobile devices with OpenID Connect / Azure AD not working with Microsoft Graph API Azure AD Graph API 和 Microsoft Graph API 有什么区别 - What is the difference between Azure AD Graph API and Microsoft Graph API 如何发布Azure AD Graph API或Microsoft Graph API中的更新 - How updates in Azure AD Graph API or Microsoft Graph API are released Azure AD Graph API或Microsoft Graph API来访问Azure AD B2C租户中的用户属性 - Azure AD Graph API or Microsoft Graph API to access User attributes in Azure AD B2C tenant 使用 Microsoft Graph API 更新 Azure AD 中的角色应用用户 - update role app users in Azure AD using Microsoft Graph API Azure AD Graph API无法访问Microsoft帐户 - Azure AD Graph API cannot access Microsoft Account Ansible 授权 Azure AD 使用 Microsoft Graph API 调用 - Ansible authorization with Azure AD to use Microsoft Graph API calls
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM