使用Microsoft图形API访问O365 Myapps

时间:2016-08-23 14:33:31

标签: office365 microsoft-graph

我正在尝试通过我的应用程序使用图形API获取所有可用的应用程序,但我没有看到任何允许我这样做的调用。

我一直在这里阅读他们的文档:https://msdn.microsoft.com/en-us/office/office365/api/api-catalog但是,无法找到任何与我的问题有关的内容。

1 个答案:

答案 0 :(得分:2)

The documentation you are referring to is actually for the Office 365 API. The Graph API is available here: http://graph.microsoft.io/en-us/docs . While the two are similar in functionality, it is recommended to use Graph to access O365 data moving forward, as it is a unified endpoint for this and other services.

To find a user's available apps, you can get the "assignedPlans" property of a user. The call to the Graph would be:

https://graph.microsoft.com/v1.0/users/[uid]/assignedPlans

where UID is the user's ID or email address.