Documentation Index
Fetch the complete documentation index at: https://auth0-fix-5290.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin:- Create an Enterprise connection for Google Workspace.
- Select Enable Users API on the connection under Auth0 APIs in the connection settings.
- Google Workspace domain admin completes authorization for Auth0 to access the Google Workspace Users API.
Steps
To set up Google Workspace Directory Sync:- Create or update a Google Workspace enterprise connection.
- Enable Directory Sync for the connection in Auth0 Dashboard or Management API.
- 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.- Auth0 Dashboard
- Management API
- Navigate to Auth0 Dashboard > Authentication > Enterprise.
- Create an enterprise connection or open your existing Google Workspace connection.
- 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. - Select the Provisioning tab.
- Toggle on Provision Users Using Directory Sync.
- 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. - Save your changes.
- To run an on-demand sync, choose Synchronize Now.
Monitor Directory Sync
Monitor sync activity in Auth0 Logs:directory_sync_starteddirectory_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 Requesterror.
Best Practices
- For new Google Workspace connections, we recommend using the Google user
idinstead of email for the Auth0user_id. - If you enable Directory Sync, consider disabling Sync User Profile Attributes at Login to avoid conflicting updates from multiple sync methods.