'How to fetch all emails of all users in an Organization in Office365/Outlook API

I am currently able to fetch Emails for single user using:

https://graph.microsoft.com/v1.0/me/mailfolders/inbox/messages

How do we fetch all emails in an organization in a single call? I do not want to loop through every user and fetch their emails. Is this possible?



Solution 1:[1]

Not possible. You will need to process all mailboxes one at a time:

https://graph.microsoft.com/v1.0/users/[email protected]/mailfolders/inbox/messages

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitry Streblechenko