Sync people data from Okta
Use this workflow to sync people data from Okta.
Prerequisites
Before you begin, make sure you have the following:
- Super Admin access in Okta
- Admin or Setup Admin access in Glean
- The following user fields populated in Okta:
- First name
- Last name
- Title
- Department
- Manager (optional, but recommended if you want to build org charts and improve people data quality)
Configure Okta as the people data source in Glean
Complete the following steps to configure Okta as the people data source in Glean:
1. Add your Okta domain to Glean
- In Glean, navigate to Admin console → Users & permissions → People data.
- Select Okta as the people data source.
- Copy your Okta domain URL and paste it into the Okta domain URL field in Glean. For example, copy and paste
https://your-okta-domain.okta.com.
See Find your Okta domain in the Okta documentation to learn how to find your domain.
2. Create an API token in Okta
- In Okta, navigate to Security → API.
- Click the Tokens tab.
- Click Create token.
- Enter a name for the token, such as
Glean People Data. - Click Create token.
- Copy the token value.
- In the Glean people data setup page for Okta, paste the Okta API token into the API Token field.
- Click Create Connector App.
Glean uses the API token to create a connector application in Okta and to grant the application the following required scopes:
okta.users.readokta.apps.readokta.logs.readokta.groups.read
Glean requires the okta.groups.read scope to crawl groups and group memberships. This scope is not required if don't use the Okta group-based role mapping feature.
For more information on how to create an API token, see Create an API token in the Okta documentation.
To learn about these scopes, see OAuth 2.0 Scopes in the Okta documentation.
3. Revoke the API token
Glean only uses the API token to create a Glean application in Okta and to grant the application the required scopes. Revoke the token after you complete people data setup. The token is not required to crawl data.
For information on how to revoke an API token, see Revoke a token in the Okta documentation.
4. Schedule a crawl
- After you create the connector app, select Schedule a crawl.
- Select Enable crawl and click Save.
Troubleshooting
If you encounter issues, see the following troubleshooting steps.
Invalid API token error
If you encounter an "Invalid API token" error, check that:
- You copied the API token correctly without any extra spaces
- The API token has not expired or been revoked before you created the people data source in Glean
- You have the correct permissions in Okta to create API tokens
Users are missing from Glean
If you notice that users are missing from Glean, check that:
- The required user fields are populated in Okta
- The API token has the correct permissions
- Your Okta domain is entered correctly in Glean
- Users are active in Okta (inactive or suspended users are not synced)
People data looks incomplete
If names, titles, departments, or managers are missing, review the corresponding fields in Okta and confirm they're populated for affected users. You may also need to adjust the field mappings in Glean.