Retrieve all messages from an email address - Microsoft Graph Explorer

Aurelien 1 Reputation point
2021-05-10T15:12:24.86+00:00

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
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,592 questions
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Shweta Choudhary 601 Reputation points Microsoft Employee
    2021-05-17T12:07:33.36+00:00

    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://learn.microsoft.com/en-us/graph/auth-v2-service
    https://learn.microsoft.com/en-us/graph/auth-limit-mailbox-access

    Thanks!

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more