Share via

Searching all emails with MS Graph API

Samir Brooks 51 Reputation points
2023-01-17T13:22:52.55+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 Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

Siddharth Gautam 860 Reputation points
2023-01-17T15:17:46.9533333+00:00

Hi @Samir Brooks ,

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".

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

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.