What Is This Error Message About?
It means that the API trying to access your Google services (in this case, Chili Piper) has no access to do so based on your organization's privacy settings.
The error 400: admin_policy_enforced may appear to Chili Piper's users while trying to integrate with Google during their onboarding phase, integrating their calendar in their Personal Settings, or any other related tasks that will involve the Chili Piper's and Google Calendar integration.
How Can I Avoid This Error?
1 - Grant Data Access to Chili Piper's App
The first option would be granting Data Access to Chili Piper's App. You need admin access to your domain's settings, so the steps below will need to be done by an Admin in your Google instance.
-
Once logged in, navigate to admin.google.com
- After this, go to the Apps section:
- Expand the Google Workspace Marketplace apps section, and then click Apps list
- Select the Chili Piper app in your applications list. If you do not find the Chili Piper app listed, you will need to follow the second approach listed in this article: Add Chili Piper to your Trusted Apps. You can stop here and try the one suggested above, as without accessing the app, we cannot grant access.
-
Once and if you view the Chili Piper settings, go to Data Access next to Approval Needed. After these, you should click on Grant data access.
These are the Chili Piper-related permissions that must be enabled to have your Google Calendar integration and its functionalities working as they should. The data access provided in step #5 should take care of those, but here's an overview if you would like to double-check:
The error 400 should be fixed by following these steps, but please contact Support if you still notice any issues.
2 - Add Chili Piper to your Trusted Apps
If the steps suggested above have not worked, no worries, we have other possibilities! The steps outlined in this section also need to be done by an Admin in your Google workspace.
-
Once logged in, navigate to admin.google.com
- In the left-hand menu, navigate to Security > Access and data control > API Controls:
- Select Add app and select Oauth app name or client ID
- Chili Piper clientIDs are the ones below. Add the one depending on which platform you are currently in (Legacy or Demand Conversion Platform):
- 618837333486-4vllbkmnts3rs66dqmta4a65f2lb098t (Demand Conversion Platform)
-
618837333486-uda9a7dnc4rfmh88r0fgo2rmh62e2e8p (Legacy)
- Once you find it, mark the checkbox right next to the app and click Select
- Next, you will select which group of users will have access to the Chili Piper's app. You can either select All Users or provide access to specific groups in your Google Workspace. Click Continue once ready.
- Select Trusted and then Finish. Chili Piper should appear in your Apps list like this:
- After you have completed these steps, try to connect to Google again in Chili Piper. Do not hesitate to reach out to us if you have any additional questions!