question

Aurelien-8668 avatar image
0 Votes"
Aurelien-8668 asked ShwetaChoudhary-8869 answered

Retrieve all messages from an email address - Microsoft Graph Explorer

Hello, I would like to use the Microsoft Graph Explorer API to develop an applcation wich display all messages (emails) for a client's email address from Outlook.

If 3 people send emails to a client, the application will display all emails for this client in 1 page (emails from the employee 1, emails from the employee 2 and emails from the employee 3).

Is it possible to do it? I dont' find the documentation to do it. I find the documentation to retrieve all emails from a connected user (an employee) but not from a client.

Thanks

microsoft-graph-mailmicrosoft-graph-explorer
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShwetaChoudhary-8869 avatar image
0 Votes"
ShwetaChoudhary-8869 answered

Can you please elaborate your use case? What is exactly meant by 'client' here?

AFAIK, it is possible to read email on behalf of a user. For this you need to make sure of 2 things -
1. Set up client credential flow.
2. Access mailbox using right set of permissions.

Please check if below things are in place -
Register your app.
Configure permissions for Microsoft Graph on your app.
Get administrator consent.
Get an access token.
Use the access token to call Microsoft Graph.

Also refer to below documentation and see if this helps.
https://docs.microsoft.com/en-us/graph/auth-v2-service
https://docs.microsoft.com/en-us/graph/auth-limit-mailbox-access

Thanks!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.