I want to read all emails within my tenant against a query using Office365 Outlook API. Currently, I am enumerating one user at a time and extracting all the emails for it
https://graph.microsoft.com/v1.0/{userId}/messages?$search="from:abc@xyz.com"
This approach is not scalable as in the case of 1000+ users it will take a lot of time. I want to extract the emails for all users against a query but without enumerating individual users.