title: Exchange Web Service - Sending email without tenant admin consent?
body: <p>I'm trying to send an email through EWS, following the instructions here:
  <a href="https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth" rel="nofollow noreferrer">Authenticate an EWS application by using OAuth</a>. I want to configure for delegated authentication, have registered my app on Azure, with API permission 'EWS.AccessAsUser.All' been added.</p>
  <p><a href="https://i.stack.imgur.com/LnxN5.png" rel="nofollow noreferrer">App registration page</a></p>
  <p>On the Azure Web UI, it tells me no admin consent is needed, but when I run the example code in above tutorial, got an exception at line:</p>
  <pre><code>var authResult = await pca.AcquireTokenInteractive(ewsScopes).ExecuteAsync();
  </code></pre>
  <p>a login window pop out, and after I enter user name and password, it says 'Need admin approval - (MyAppName) needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it.'</p>
  <p><a href="https://i.stack.imgur.com/z9HJQ.png" rel="nofollow noreferrer">Popup window</a></p>
  <p>Do I have to get admin's consent for this? Is the Azure UI info conflict with what the popup have said?</p>
  <p>Thanks!</p>