How to fix "Admin_policy_enforced" error when trying to login to Airmail app



Update the Airmail app

We have released an update for both the iOS and MacOS version of the Airmail app which will solve this error. The latest version is 488(2.0.6) for iOS and 3.6.73 for the MacOS devices. If you are still seeing the error after updating the app, try to refresh token for the G-suite accounts. To refresh tokens, please go to the Airmail preferences or settings > Double click on the G Suite account in the account list > User > Refresh tokens.

Enable API access on G Suite Admin Console

G Suite admins should check their G Suite Admin Console and review the organization's Admin API settings to ensure API access is enabled.



G Suite admins will also need to whitelist Airmail app as a trusted app.

Open the G Suite Admin console



Click on Security option present in the Console.



You will see the API permission section at the bottom of Security options.



You will see the Airmail app in the installed section. From there, click on Trusted section to mark the Airmail app as trusted. You have to tap on the 3 dots at the right end of the Airmail app to mark it as trusted.



Once all the steps are followed, you can refresh token for the G Suite accounts in the Airmail app. To refresh tokens, please go to the Airmail preferences or settings > Double click on the G Suite account in the account list > User > Refresh tokens.

Why are you seeing this error?

From Nov 4, 2019, Google has removed the API Reference setting. Now, only the Admin API access setting will be used to control API access.

If you have the API Reference setting disabled, Google will automatically disable your Admin API access setting.

For more information, click here
Was this article helpful?
Cancel
Thank you!