问题
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