EWS OAuth - API Permission full_access_as_app

PP 21 Reputation points
2022-09-25T17:01:56.547+00:00

I`m using the tutorial on the link
"https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth"
, I have an Azure Subscription and Office 365 Developer Sandbox E5 instance.

I have registered the application on Azure but can`t find "full_access_as_app" mentioned in the tutorial.

Currently I`m getting 401 when I try and access via code.

Also under API Permissions cant seem to find Exchange API.

I have tried the recommendation in https://learn.microsoft.com/en-us/answers/questions/798643/graph-endpoint-url-for-full-access-as-app.html, but cant seem to get Office365 Exchange Online on searching under My API.

My end goal is to use EWS Exchange services using OAuth token.

Assistance in this regard will be much appreciated.

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,386 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,633 questions
0 comments No comments
{count} votes

Accepted answer
  1. Glen Scales 4,431 Reputation points
    2022-09-25T23:47:08.707+00:00

    In the link you referenced https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth the recommend way of adding the permissions is to modify the manifest if you haven't done this before see https://learn.microsoft.com/en-us/azure/active-directory/develop/reference-app-manifest and then . eg

    {
    "resourceAppId": "00000002-0000-0ff1-ce00-000000000000",
    "resourceAccess": [
    {
    "id": "dc890d15-9560-4a4c-9b7f-a736ec74ec40",
    "type": "Role"
    }
    ]
    }

    Once you have modified the manifest you should then see the permission in the permission tab added to you application registration and you can then consent to.

    0 comments No comments

0 additional answers

Sort by: Most helpful