azure - 无法使用应用程序权限(角色)访问 Microsoft Graph API 组日历

标签 azure office365 microsoft-graph-api office365api

我的目标是使用 Microsoft Graph API 列出 Office 365 组的日历事件。 使用的端点是 https://graph.microsoft.com/v1.0/groups/{id}/events based on the documentation 。使用 Graph Explorer,我可以通过我的委派权限获取信息。问题是当我使用应用程序权限进行相同的调用时。我确信 JWT token 包含进行调用所需的角色(Group.Read.All、Group.ReadWrite.All),但我收到以下错误:

Access is denied. Check credentials and try again

奇怪的是,我能够获取组 /v1.0/groups/{id},但无法访问与其日历和事件相关的任何内容。

最佳答案

当前不支持使用应用程序权限查看群组资源/内容。请在此处查看已知问题:https://developer.microsoft.com/en-us/graph/docs/concepts/known_issues#groups-and-microsoft-teams .

如果您的方案需要这样做,请投票

两者都是关于仅应用程序访问群组对话(类似于群组事件)。

否则,请创建新的用户语音请求。

关于azure - 无法使用应用程序权限(角色)访问 Microsoft Graph API 组日历,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47462082/

相关文章:

c# - 热衷于使用 GraphServiceClient 访问特定用户资源不是我吗?

c# - Automapper - 无法映射嵌套对象/集合

php - 微软图形 API - AADSTS90094 : The grant requires admin permission

azure - 服务帐户 Office 365 API/Azure

powershell - 新的 ExoPSSession : unknown_user_type: Unknown User Type

azure-active-directory - AAD 应用遇到 AADSTS50000 提示=admin_consent

用于分析服务和 Power BI 的 Azure AD B2B - 外部用户邀请

c# - 使用 GraphServiceClient 在 OneDriveForBusiness 中创建嵌套目录

c# - 我应该在Azure隔离功能中使用Microsoft.AspNetCore.Mvc包吗?有什么缺点和优点?

microsoft-graph-api - 获取日历 View 中事件的增量更改