Does moving a message item between folders in a shared mailbox modify its immutable id? (Note: It's a shared mailbox))

Vijayakumar Natarajan 5 Reputation points
2024-06-24T11:46:30.68+00:00

I am using the Graph API .NET SDK to fetch messages in a shared mailbox and adding the prefer immutable ids header. However, when paginating the results using the odataNextLink property & fetching the entire result, the immutable ids of message item gets modified when they are moved to a different folder. Is this expected behavior?

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Graph
{count} vote

2 answers

Sort by: Most helpful
  1. Brian Whiting 5 Reputation points
    2024-09-13T16:42:24.83+00:00

    I have found that when using the Microsoft Graph API to move the message betwen folders in a shared mailbox, the immutable ID does not change.

    However, when using the Windows and Web Outlook clients to move a message in a shared mailbox, it appears to create a copy in the destination folder and move the original to a hidden "Purges" folder, which results in the message getting a new immutable ID in the new folder.

    1 person found this answer helpful.
    0 comments No comments

  2. Mike Hu-MSFT 4,085 Reputation points Microsoft External Staff
    2024-06-25T02:41:37.7133333+00:00

    Hi,

    An item's immutable ID won't change so long as the item stays in the same mailbox. That means that immutable ID will NOT change if the item is moved to a different folder in the mailbox.

    Even if it is a shared mailbox, it should be the same as above.

    However, the immutable ID changes if:

    • The user moves the item to an archive mailbox.
    • The user exports the item (to a PST, as an MSG file, etc.) and re-imports it into their mailbox.

    More information you can refer to: : Obtain immutable identifiers for Outlook resources - Microsoft Graph | Microsoft Learn

    Please feel free to contact me for any updates.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.