Getting "400 admin_policy_enforced" Authorization Error in User Sync with GSuite



  • After sign in to myViewBoard.com -> Entity Management -> Users, IT admin can sync user by click "User Sync" button

    566bd867-33d3-4168-8d06-eaef3152c02a-image.png

    This "400 admin_policy_enforced" Authorization Error in occurred right after and shows this

    6f928bad-71f9-4b16-8682-0050f63ca978-image.png

    As you can see this from the URL which is "accounts.google.com", this error is prompt from Google. This is due to security setting in GSuite Admin which blocks 3rd party Apps accessing via API. To solve this, here are the steps:

    1. Sign in to admin.google.com using super admin role
    2. Click Security -> API Control -> Manage Third Party App Access

    9abf23b5-2b46-4963-98e9-f681844324ca-image.png

    Click Configure new app -> OAuath Ap Name Or Client ID

    b556d092-b132-4596-b0df-c3a4d51c0c26-image.png

    Enter "myviewboard" and click Search button. Then click Select button to choose myViewBoard

    88432802-5313-4a6d-9985-7a5b151e4288-image.png

    Select the right "client ID" for myViewBoard. Make sure you choose this one "11040883588-7b15f2fvpme4udh". Click Select

    3d345a60-fdc2-4ddc-b548-0da4ed37e32b-image.png

    Find App Name with "myViewBoard" and ID with "11040883588-7b15f2fvpme4udh". Click Change Access

    d63164fa-b598-48c7-964b-3cf63c5253a8-image.png

    Select "Trusted: Can access all Google services" and click Change

    d1f60daf-f10a-41f6-beee-19c03cc3b936-image.png

    Now, you are able to Sync User by signing in to myViewBoard.com -> Entity Management -> Users -> User Sync with GSuite

    For more information, you can find it here https://support.google.com/a/answer/7281227?hl=en


Log in to reply