Move Mail from personal Mailbox to public folder (EWS/Graph)

Groß, Pascal 0 Reputation points
2024-04-30T09:04:26.7066667+00:00

I am trying to move a mail item from a personal mailbox to a public folder.

As I understand, this is still not possible using Microsoft Graph because public folder access is not supported.

Using Microsoft 365 Groups instead of public folders to store mail items is no option, as I would need to organize them in sub folders. Those are not supported by the Windows Outlook client.
Furthermore I am not clear about how to move a mail to a group using Graph API.

Therefore, my current work concentrated on EWS.
Trying to move a mail item using Move or Copy results in the following error:
'Access to this API requires the following permissions: 'MailExport-Internal.Read.All,MailExport-Internal.Read.Shared,MailExport-Internal.ReadWrite.All,MailExport-Internal.ReadWrite.Shared'. However, the application only has the following permissions granted: 'full_access_as_app,Mail.ReadWrite,Mail.Read,Mail.Send'.";error_category="invalid_grant"

Those permissions seem to be internal - I am unable to grant them.

Outlook
Outlook
A family of Microsoft email and calendar products.
3,076 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,768 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
516 questions
{count} votes