Set up Glean
Before running your first sync, complete the one-time setup tasks in this guide: create a Glean datasource to receive the indexed terms, generate the API credentials needed for both indexing and curated Answers, and save them in Atlan.
Prerequisites
Before you begin, make sure you have:
- Admin access to the Glean admin console
- Permissions to create API tokens in Glean
- Your Atlan tenant URL (for example,
your-tenant.atlan.com) - Admin or API Token creation permissions in Atlan
Create Glean datasource
A Glean datasource is the named container that holds all the documents indexed from Atlan. You create it once and reference it in every sync run.
- Log in to your Glean admin console.
- Navigate to Workspace Settings > Custom Apps.
- Click Add datasource and select KNOWLEDGE_HUB as the datasource type.
- Choose a short, unique internal name using only lowercase letters, digits, and underscores (for example,
atlan_glossary). Enter this name in Atlan when saving credentials. - In the datasource URL pattern field, enter a regex that matches your Atlan tenant URLs:
Replace
^https://your-tenant.atlan.com/(assets|glossary)/.*$your-tenantwith your actual Atlan tenant name. - Complete the datasource configuration and save. New datasources start in test mode. You'll promote the datasource to production after validating your first sync.
Generate Glean API tokens
This connector requires two Glean API tokens: an Indexing token (scope: Indexing) to push glossary terms as searchable documents, and a Client API token (scope: Client API) to manage curated Answers. Both are required, even if curated Answers aren't enabled. To generate each token:
- In the Glean admin console, navigate to Workspace Settings > API tokens.
- Click Create token.
- Select the appropriate scope for the token you're creating.
- Copy and securely save both tokens. You can't view them again after leaving the page.
Generate Atlan API key
The connector uses an Atlan API key to read glossary terms. Because the connector only reads data, a low-privilege token is sufficient.
- In Atlan, go to Settings > API Tokens.
- Click Generate API Token.
- Enter a descriptive name, such as
Glean Sync. - Assign the
GuestorData Stewardpersona. The connector only reads glossary term metadata. - Click Save and copy the generated token.
Save credentials in Atlan
- In the top navigation, click Marketplace.
- Search for Glean and select it.
- Click Install.
- Once installation completes, click Setup Workflow on the same tile.
If you navigated away before installation completed, go to New > New Workflow and select Glean to proceed.
- In the Credential step, click Add credential.
- Fill in the credential form:
- For Glean Instance URL, enter your Glean backend hostname without
https://or a trailing slash. For example:your-company-be.glean.com. - For Atlan API Key, paste the API key you generated in the previous step.
- For Glean Indexing API Token, paste the indexing token.
- For Glean Client API Token, paste the client API token.
- For Glean Datasource Name, enter the datasource name you created earlier (for example,
atlan_glossary).
- For Glean Instance URL, enter your Glean backend hostname without
- Click Save to store the credential.
Your credentials are now saved.
Next steps
- Sync glossary terms to Glean: Configure which terms to sync, whether to enable curated Answers, and run or schedule the workflow.