Reputation: 117
I have a requirement where I have to connect with Microsoft Outlook and get all emails for all user in that tenant (domain).
I am able to get data for one user using
/v1.0/me/mailfolders/inbox/messages
but I want retrieve mails for all users.
We have around 1000 users but I want to get mails from one call. I don't want to make user specific calls 1000 times.
I have gone through docs but didn't found anything.
Upvotes: 1
Views: 1376
Reputation: 33124
It isn't possible, nor would it be practical, to "get mails from one call". You need to retrieve messages by mailbox using the user name:
GET /v1.0/users/{user-id}/messages
Upvotes: 1