> For the complete documentation index, see [llms.txt](https://docs.meta-inf.hu/email-this-issue/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meta-inf.hu/email-this-issue/administration/mail-server-connections/microsoft-with-oauth2/troubleshooting-guides-for-microsoft-oauth2-connections/how-to-fix-need-admin-approval-error.md).

# How to fix "Need admin approval" error

If the application permissions are not configured properly, you may receive a "Need admin approval" error screen upon Authorizing the Oauth2 credentials.

In this case, you should check if you have configured all the following permissions:

* IMAP.AccessAsUser.All
* offline\_access
* SMTP.Send
* User.Read

&#x20;and if the permissions have been added as delegated permissions:

<figure><img src="/files/ROoKF2EqbBCyoWER0PM0" alt=""><figcaption></figcaption></figure>

If you can see that the Admin consent required field is true for the permissions, an administrator has to grant access:

<figure><img src="/files/SlLWKz2kzUr5W0H9M8w6" alt=""><figcaption></figcaption></figure>

Please keep in mind that Email This Issue will use all of these permissions to get a token. Even if, for example, you wouldn't like to send emails, you still need to add the SMTP.Send permission.
