Using Microsoft graph API to access O365 Myapps

感情迁移 提交于 2019-12-23 02:01:32

问题


I'm trying to get all of the apps that are available through my apps with the graph API and I don't see any call that allows me to do that.

I've been reading their documentation here: https://msdn.microsoft.com/en-us/office/office365/api/api-catalog however, have been unable to find anything that pertains to my issue.


回答1:


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.



来源:https://stackoverflow.com/questions/39104083/using-microsoft-graph-api-to-access-o365-myapps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!