Whats the difference between IMAP.AccessAsUser.All of Graph API permissions and Office 365 Exchange online IMAP.AccessAsApp

Sujith Dhanpal 0 Reputation points
2024-07-17T06:42:53.52+00:00

I want to implement a way to the manage the mails in a mail box using client credentials flow. I want to retrieve the emails and manage them. Now there are two kind of permissions that I see, MAP.AccessAsUser.All of Graph API and IMAP.AccessAsApp and Office 365 Exchange online. What is the recommended approach that I need to follow.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,245 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,569 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 6,340 Reputation points Microsoft Vendor
    2024-07-17T08:41:05.06+00:00

    Hi @Sujith Dhanpal

    The Graph one is currently a Delegate level permission only, the Exchange one can also be granted at the application level. You need to use client credential flow, so you need to use Office 365 Exchange online IMAP.AccessAsApp.

    More details can be found at this link:

    https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.