> 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/email-this-issue-for-jira-server-data-center/documentation/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:

![](/files/zvzbWJH3dsOvVfkRgAun)

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

![](/files/G1qkL3oyP31WrzfKP1My)

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.
