ListJoinedTeams是工作指定/me,但没有工作指定/user [英] ListJoinedTeams was work specify /me, but did't work specify /user
问题描述
我与指定的用户尝试了ListJoinedTeams
,但是没有用.
我和自己尝试了ListJoinedTeams
,并与指定用户尝试了Listmessage
,它可以正常工作.
I tried ListJoinedTeams
with a specified user, but it didn't work.
I tried ListJoinedTeams
with myself and Listmessage
with a specified user and it worked.
-
不起作用
工程
- https://graph.microsoft.com /v1.0/users/MeganB@M365x214355.onmicrosoft.com/messages
- https://graph.microsoft.com/v1.0/me/joinedTeams
- https://graph.microsoft.com/v1.0/users/MeganB@M365x214355.onmicrosoft.com/messages
- https://graph.microsoft.com/v1.0/me/joinedTeams
您能告诉我如何设置用户吗? 我从Graph Explorer尝试过.
Would you tell me how to set users? I tried it from Graph Explorer.
https://docs.microsoft.com/zh-cn/graph/api/user-list-joinedteams?view=graph-rest-1.0
推荐答案
使用委托"权限时,Microsoft Graph仅支持/me
和/joinedteams
.根据文档:
Microsoft Graph only supports /me
with /joinedteams
when using Delegated permissions. Per the documentation:
具有用户委派的权限,此操作仅适用于我" 用户.具有应用程序权限,它适用于所有用户 指定特定的用户ID. (不支持'me'别名 应用程序权限)
With user delegated permissions this operation only works for the 'me' user. With application permissions, it works for all users by specifying the specific user id. ('me' alias is not supported with application permissions)
这篇关于ListJoinedTeams是工作指定/me,但没有工作指定/user的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!