如何使用Microsoft graph API检索用于多用户登录的我的任务计划器 [英] How to retrieve the my task planner for multi user login using Microsoft graph API
问题描述
你好,
我正在使用计划程序来将当前登录用户计划检索到Web部件.通过Microsoft graph API和邮递员身份验证,我设法获取用户1的计划者详细信息,但对于每个用户,我都必须从https://apps.dev.microsoft.com/添加应用 要始终授予权限访问权限,从逻辑上讲不可能将应用程序添加到组织中的所有用户.因此,请让我知道如何通过rest api获取每个登录用户的任务计划器.
I was working on planner to retrieve current login user plan to the web parts. Through Microsoft graph API and post man authentication I manged to fetch the planner details for user 1 but for every user I have to add app from https://apps.dev.microsoft.com/ to give permission access at all the time,Logically it is not possible to add apps to all the users in a organisation.So please let me know how to get task planner for each login user through rest api.
我正在使用的用于获取访问令牌和工具的工具应用注册.
The tools which I was working to get access token and apps registration.
https://apps.dev.microsoft.com/-通过我进行的应用程序注册,我设法获得了客户端ID和秘密ID.
https://apps.dev.microsoft.com/ - for app registration through I managed to get client id and secret id.
https://www.getpostman.com/-尽管我设法获取访问令牌并刷新令牌.
https://www.getpostman.com/ - though this I manged to get access token and refresh token.
我用来检索的代码
让我知道如何检索任务计划者根据用户ID.
Let me know how to retrieve task planner based on user id.
推荐答案
我认为您可以根据需要使用/users/< id>/planner/tasks端点.
在下面的线程中检查可用的端点.
https://developer.microsoft.com/zh-CN/graph/docs/api-reference/v1.0/api/planneruser_list_tasks
您可以对应用使用管理员同意书,因此不需要所有最终用户的授予权限.
您可以在下面的链接中查看更多详细信息.
Lee
这篇关于如何使用Microsoft graph API检索用于多用户登录的我的任务计划器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!