我的目标是使用Microsoft Graph API列出Office 365组的日历事件 . 使用的 endpoints 是 https://graph.microsoft.com/v1.0/groups/{id}/events
based on the documentation . 使用Graph Explorer,我'm able to get the information with my delegated permissions. The problem is when I make the same call using application permissions. I' m正JWT令牌包含进行调用所需的角色(Group.Read.All,Group.ReadWrite.All)但是我收到以下错误:
访问被拒绝 . 检查凭据,然后重试
奇怪的是,我能够得到小组 /v1.0/groups/{id}
但无论与之相关的是什么's calendar and events isn' t都可以访问 .
1 回答
目前不支持使用应用程序权限查看组资源/内容 . 请在此处查看已知问题:https://developer.microsoft.com/en-us/graph/docs/concepts/known_issues#groups-and-microsoft-teams . 如果您的方案需要这样做,请投票支持https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/suggestions/18747862-app-authentication-to-retrieve-conversation-messag或https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/suggestions/16851937-allow-application-only-consent-to-read-conversation,这些是关于应用程序的群组对话访问权限(类似于群组活动) . 否则请创建新的用户语音请求 .
希望这可以帮助,