Share via

Email $search does not work with IdType="ImmutableId"

Mike Luo 0 Reputation points
2025-02-25T00:42:29.36+00:00

Hi team, the header Prefer: IdType='ImmutableId' does not work for the messages resource.

When I do https://graph.microsoft.com/v1.0/users/******@test.onmicrosoft.com/messages with that header, it returns the immutable ID.

However, if I add a $search query param for ex https://graph.microsoft.com/v1.0/users/******@test.onmicrosoft.com/messages?$search="subject:*", it stops working

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-02-25T01:34:11.3033333+00:00

    Hello Mike Luo,

    Thank you for reaching out to Microsoft Support!

    In response to your question, we have noticed that many users in the community have experienced the same problem recently, and after our testing, the same results.

    Therefore, it is possible that the Prefer: IdType="ImmutableId request header is no longer available,

    I suggest you open a support ticket to confirm with the team. You can raise support ticket from:

    http://aad.portal.azure.com or https://admin.microsoft.com/#/support/requests.

    Other similar question:

    https://learn.microsoft.com/en-us/answers/questions/1286551/email-search-issue-with-idtype-immutableid

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    Was this answer helpful?

    0 comments No comments

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.