Sending email by EWS using Oauth2.0

lei zhong (iSoftStone Inc.) 1 Reputation point Microsoft Vendor
2021-01-27T03:04:19.413+00:00

Hi there,

I have question 'bout using EWS with Oauth2.0 Client Credential.

In our directory, there're users with member type and guest type, however, all of our administrators are from Microsoft directory(using v-xxx@microsoft.com) and they are under guest.

My question is if it's possible to use credential client grant type, and use EWS to send email behalf of these guest users?

Thank you.

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

1 answer

Sort by: Most helpful
  1. Vasil Michev 100.2K Reputation points MVP
    2021-01-27T08:27:54.77+00:00

    Yes, as long as the app has been granted impersonation permissions. OAuth is supported for the client credential flow, but without impersonation you will not be able to do this.

    0 comments No comments