MSGraph API:如何获取其他用户的 outlook 类别,如 API 中所述

MSGraph API: How to get outlook categories of other user as described in the API

我正在尝试通过 API 为我以外的用户获取类别 names/colours,文档说这是可能的,请参见下图,但是 returns“访问被拒绝。请检查凭据并重试。”即使我确实有权访问该邮箱。

似乎这个问题也被问了将近 3 年前没有答案,猜测 API 文档描述了开发人员忘记编程的场景???

Previous posting of the same question

这是完整的请求并显示允许的权限。

您不能使用委托权限来执行此操作,因为没有 MailboxSetting.ReadWrite.Shared 权限,因此在使用委托权限时端点只能用于访问当前用户的邮箱设置。您使用应用程序权限和客户端凭据流 https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow if you need to limit the scope of your application to a number of Mailboxes you can do that as well https://docs.microsoft.com/en-us/graph/auth-limit-mailbox-access