Azure Ad Graph API,获取用户信息和用户设备信息

Azure Ad Graph API, Get User information and User Device Infromation

我想知道我是否可以使用 Azure Active Directory Graph Api 来检索有关用户的信息以及特定用户的设备和设备信息?

我设法通过以下方式获取了一些信息:

https://graph.windows.net/f2f535e0-294f-4704-befc-8ce754f10bd7/users/9da7eaba-78bf-4b54-844a-7918d40a6005?api-version=1.6

在 Fiddler 中,并在 header 中粘贴 Authorization Bearer 令牌。 我得到了一些一般信息,但没有关于分配给用户的设备或设备 ID 的任何信息。

有什么建议吗?

您可以通过以下方式获取用户拥有的设备:

https://graph.windows.net/f2f535e0-294f-4704-befc-8ce754f10bd7/users/9da7eaba-78bf-4b54-844a-7918d40a6005/ownedDevices?api-version=1.6

用户 returns 上的 ownedDevices 导航 属性 您是用户拥有的设备。

您可以在此处找到有关所有属性和导航属性的信息:https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#user-entity