Outlook升级OAuth2.0发送邮件提示The AadGuestPft token doesn't contain the permissions required by the target API for calling app '00000003-0000-0000-c000-000000000000'.

志森 陈 0 信誉分
2024-09-27T09:12:21.02+00:00

你好,我们把Outlook邮件服务的功能升级认证方式为OAuth2.0,我们注册了一个Microsoft Entra帐号,获取token也成功,但我们用这个Outlook发邮件时,返回错误:401:The AadGuestPft token doesn't contain the permissions required by the target API for calling app '00000003-0000-0000-c000-000000000000'.能帮我看一下是少了那些权限?还是少了那些配置问题吗?以下是我的应用程序截图

1:注册 应用程序
图片

图片

图片 图片

图片

6:outlook授权-用 授权code获取access_token

图片

图片

"error": {

    "code": "AuthOMMissingRequiredPermissions",

    "message": "The AadGuestPft token doesn't contain the permissions required by the target API for calling app '00000003-0000-0000-c000-000000000000'.",

    "innerError": {

        "oAuthEventOperationId": "7e76fc18-f21d-4c03-b85e-f11979ab664d",

        "oAuthEventcV": "8nRKIxKopuzaNCFSsEE7HQ.1.1",

        "errorUrl": "https://aka.ms/autherrors#error-InvalidGrant",

        "requestId": "7f962a0e-b5b9-4bcd-9ff6-67299c9c80d7",

        "date": "2024-09-27T07:11:27"

    }

}
```}
为什么发送不了?求解????
Outlook
Outlook
Microsoft 电子邮件和日历产品系列。
38 个问题
Microsoft Graph
Microsoft Graph
一种 Microsoft 可编程性模型,用于公开 REST API 和客户端库以访问 Microsoft 365 服务上的数据。
31 个问题
{count} 票

你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。