无需使用Microsoft Graph用户登录即可访问日历事件

问题描述 投票:0回答:1

我需要在没有用户登录的情况下访问Microsoft Graph的帮助。到目前为止,我正在尝试访问events/端点,但未成功。

来自以下具有以下权限的图形API应用Graph API Appenter image description here及以下帐户类型enter image description here

我可以获得userless access token enter image description here,并且可以访问users enter image description here,并且还可以使用id enter image description here,但不能访问日历enter image description here

尽管HTTP响应代码为401 Unauthorized,但错误OrganizationFromTenantGuidNotFound看起来像是权限问题。

我想念什么?

TIA

microsoft-graph microsoft-graph-calendar
1个回答
0
投票

为了使对/users/{user-id}/events的呼叫正常工作,如果使用客户端凭据,则user-id所指示的用户必须在Exchange Online上具有邮箱。

您在评论中指出该用户是您的个人帐户,也许它已被添加为您组织中的“来宾”用户?在那种情况下,该用户帐户将没有邮箱(mail属性为null才有意义),因此该调用将无法进行。

© www.soinside.com 2019 - 2024. All rights reserved.