ApplicationImpersonation

Gary Semple 0 Reputation points
2024-08-14T04:18:48.4833333+00:00

I do have an Azure app(use for office365 mailbox access) and use EWS mailbox operations.

How can I grant relevant permission(ApplicationImpersonation) by using Graph API?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,303 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Yakun Huang-MSFT 10,555 Reputation points Microsoft External Staff
    2024-08-14T06:15:00.3433333+00:00

    Hi @Gary Semple

    Select the endpoint that grants permissions based on the flow being used.

    When using auth code flow, authorize interactive logins through /authorize endpoints.

    When using the client credential flow, authorization is done through the /adminconsent endpoint, which requires an administrator to authorize.

    Or you can grant permissions directly to the application service principal through this documentation tutorial

    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.

    1 person found this answer helpful.

  2. Andy David - MVP 153.7K Reputation points MVP
    2024-08-16T17:14:11.3+00:00
    0 comments No comments

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.