MS Graph API - 访问共享邮箱(应用权限)

时间:2021-07-12 07:19:48

标签: microsoft-graph-api microsoft-graph-sdks

我使用 GraphServiceClient (ClientCredentialProvider) 访问邮箱。它工作正常。

我想访问它的共享邮箱。可以这样做吗?

谢谢,

AU

1 个答案:

答案 0 :(得分:0)

当然,我使用 Microsoft Graph Explorer 进行了测试。您需要通过从左侧的“设置齿轮”中选择权限,在 Graph Explorer 上为用户添加/同意所需的权限。从权限列表中选择 Mail.Read.Shared 并同意。 enter image description here

成功后,您可以访问共享邮箱及其消息,如下所示:- https://graph.microsoft.com/v1.0/users/{sharedmailboxmailaddress}/messages enter image description here