Microsoft graph ErrorMultipleMailboxesNotSupportedForRest error

Kristof Lievens 26 Reputation points
2021-03-09T22:14:49.217+00:00

Hi, I'm trying to copy a mail using the Microsoft Graph API and Postman. I'm copying a mail from my personal work mailbox to a shared mailbox folder using this POST URL: https://graph.microsoft.com/v1.0/Users/xxx-my-id-xxx/messages/xxx-a-message-id/copy, the body of the request = { "destinationId": "xxx-id-of-target-folder-in-shared-maibox-xxxx" } This has worked for years using the deprecated outlook v2.0 API, but until recent, I get this error. I tried switching to the graph API but keep getting this error: "error": { "code": "ErrorMultipleMailboxesNotSupportedForRest", "message": "Rest does not support copying items between multiple mailboxes, only single mailbox copy operations are supported." } What am I doing wrong? Upon authentication, I use the following OAuth2 scopes: openid Mail.ReadWrite.Shared offline_access profile email

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,649 questions
0 comments No comments
{count} votes

Accepted answer
  1. Danstan Onyango 3,741 Reputation points Microsoft Employee
    2021-03-15T06:24:42.877+00:00

    Graph does not currently support copying messages between two mailboxes. As the error says, only copy between folders within a single mailbox is supported.
    I suggest you create a feature request in the Graph UserVoice so that it can be implemented in future.

    You could also try to instead create the message as a draft in the new mailbox but it will exist as a draft. This may or may not work for you.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Kristof Lievens 26 Reputation points
    2021-03-15T11:47:46.897+00:00

    Hi Danstan, this has worked in the past when using the outlook v2.0 REST API, but also when using that (deprecated) API, I get the same error. Any idea why?