Search mails with MS Graph API

Bruno (IT) 25 Reputation points
2023-02-08T23:48:54.9933333+00:00

Hello, our team is trying to implement emails search using MS Graph and we want users to be able to access and search emails of other users inside of an azure directory. So far we tried accessing emails via MS Graph Search API with application permissions for mails (Mair.Read), but it only throws an error that we don't have enough permissions to search (I assume, because it expects delegated permissions for mails).

So, Is there a way to allow users search all emails in an azure directory?

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

Accepted answer
  1. Siddharth Gautam 855 Reputation points
    2023-02-08T23:55:07.7+00:00

    Hello Bruno (IT),

    Thanks for posting!

    As per the Microsoft Graph Documentation, currently using Search API, you can access only the signed-in user’s own mailbox. Searching delegated mailboxes is not supported. You can refer below link for same.

    Known Limitation in Search API for Emails

    Hope this helps.

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

    0 comments No comments

0 additional answers

Sort by: Most helpful