Skip to main content

Prerequisites

Before you begin:

Steps

To set up Google Workspace Directory Sync:
  1. Create or update a Google Workspace enterprise connection.
  2. Enable Directory Sync for the connection in Auth0 Dashboard or Management API.
  3. Enable automated sync, or run a manual one-time sync on-demand.

Enable Directory Sync

Use Auth0 Dashboard or the Management API to enable Directory Sync with your Google Workspace connection.
  1. Navigate to Auth0 Dashboard > Authentication > Enterprise.
  2. Create an enterprise connection or open your existing Google Workspace connection.
  3. Select Enable Users API under General when creating a new connection or on the Settings tab of an existing connection.
    A. Save your changes.
    B. Complete administrator consent under the Setup tab to authorize Google Workspace.
  4. Select the Provisioning tab.
  5. Toggle on Provision Users Using Directory Sync.
  6. Configure:
    A. Attribute Mapping to control which Google attributes are written into the Auth0 user profile.
    B. Enable Automated Synchronizations to run the sync automatically.
  7. Save your changes.
  8. To run an on-demand sync, choose Synchronize Now.

Monitor Directory Sync

Monitor sync activity in Auth0 Logs:
  • directory_sync_started
  • directory_sync_completed

Sync Frequency Limits

  • Automated sync runs every 30 minutes after the last sync completes.
  • A manual sync triggered within 30 minutes of the previous completed job will return a 400 Bad Request error.

Best Practices

  • For new Google Workspace connections, we recommend using the Google user id instead of email for the Auth0 user_id.
  • If you enable Directory Sync, consider disabling Sync User Profile Attributes at Login to avoid conflicting updates from multiple sync methods.