I implemented this https://learn.microsoft.com/en-us/graph/outlook-large-attachments?tabs=java, and I’m having a permission issue.
x-ms-diagnostics : 2000008;reason="Access to this API requires the following permissions: 'AttachmentSession.Write,AttachmentSession.Write.All,AttachmentSession.Write.Shared'. However, the application only has the following permissions granted: 'Calendars.ReadWrite,Files.ReadWrite,Mail.Read,Mail.ReadWrite,Mail.Send,User.Read,User.ReadWrite'.";error_category="invalid_grant"
X-Powered-By : ASP.NET
X-Proxy-BackendServerStatus : 403
X-Proxy-RoutingCorrectness : 1
X-RUM-Validated : 1
{
"error": {
"code": "ErrorAccessDenied",
"message": "Access is denied. Check credentials and try again."
}
}
PUT https://outlook.office.com/api/gv1.0/users('xxxxxx')/messages('xxxxxxxx')/AttachmentSessions(
and when I tried to add that permissions in the scopes, I get:
The application 'xxxxx’ asked for scope 'AttachmentSession.Write' that doesn't exist on the resource '00000003-0000-0000-c000-000000000000'. Contact the app vendor.
Trace ID: 6492b2a1-4d9c-4c7e-9cb9-cce9eda50a00
Correlation ID: 5295a4d4-5bc7-4b17-b6f7-c8ab8ed529ee
Timestamp: 2020-11-19 00:19:37Z
I research in all Microsoft Graph documentation and I dont fine any permission for AttachmentSession.