Move Emails - GraphAPI - Issue with Service Account and a shared Mailbox

Prashant Shetty 6 Reputation points
2021-07-30T04:37:39.587+00:00

Hi,

We are trying an archiving strategy for our app, which require capability to move the emails to a separate Public folder (not well-known ones available but a newly created Folder in the mailbox) post processing.

We are using GraphAPI SDK.

Email message Move API seems to work fine for a service account and for it's own mailbox, but same API doesn't work for the shared Mailbox to which service account have Read and Write access.

API under consideration

https://graph.microsoft.com/v1.0/users/es15@yu********.onmicrosoft.com/mailFolders/INBOX/messages/AAMk*******************BGAAAA=/microsoft.graph.move

Any pointers are highly appreciated.

Thanks.
Prashant

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,844 questions
{count} vote