Skip to main content

Troubleshooting tools authentication

This page helps you diagnose and resolve authentication issues with Glean tools, including repeated re-authentication prompts, expired token errors, connection failures, and cases where an action returns instructions instead of running.

Prerequisites​

Review the requirements for your role before you troubleshoot tool authentication.

For end users​

  • Glean access. Confirm that your Glean account can access the tool through Glean or an agent that uses it.
  • Connected app access. Confirm that your account in the connected app has permission to access the required data. Glean honors source-system permissions.
  • Issue details. Record the affected tool, whether the Connect prompt appears, the reasoning mode you're using, and any error code you receive.

For admins​

  • Admin console access. You need access to Admin console → Platform → Tools to change a tool's OAuth configuration.
  • Source-system approval. Some tools require a site-level or organization-level admin to authorize the OAuth app before end users can connect. For example, Jira might require approval from a Jira site admin.

Glean returns instructions instead of running an action​

If Glean describes how to do something (or writes out a query or the steps for you to run) instead of performing a connected-app action, and you never see a Connect prompt, this is almost always a reasoning mode issue, not an authentication or permissions problem.

Actions from connected apps (MCP tools) only load in Thinking mode. In Fast mode, and in Adaptive mode when it stays on the fast path, these tools aren't loaded at all, so there's nothing to authorize and no Connect prompt appears.

To fix it:

  1. Open the reasoning-mode selector in the chat input.
  2. Select Thinking. (If you use Adaptive, naming the connected app in your request makes it more likely to switch to Thinking, but selecting Thinking is the reliable option.)
  3. Re-run your request. Your mode selection persists across queries.

Because the mode is a per-user setting, the same request can work for one teammate and not another. The difference is the mode they're in, not their access. For more on modes, see Reasoning modes. If you're already in Thinking mode and the action still doesn't run, continue with the authentication checks below.

Why a tool keeps asking you to reconnect​

Tools use OAuth to access source systems on your behalf. After you click Connect and authorize a tool, Glean stores an access token and (where available) a refresh token. Glean uses the refresh token to get new access tokens without prompting you again.

You'll be asked to reconnect if any of the following happen:

  • The refresh token expires because of the source system's token lifetime policy.
  • You or an admin revoked the Glean connected app in the source system.
  • The custom OAuth app's client secret was rotated but not updated in the Glean Admin console.
  • A required site-level or org-level approval hasn't been granted (for example, a Jira site admin hasn't authorized the OAuth app for the Atlassian site).
  • The source system rejected your stored token. Glean removes a token when the source system returns an authorization error, so you see a Connect prompt the next time you run the tool.

Choose an OAuth setup for tools​

When setting up tools, admins choose between two authentication methods:

Central​

The Central option uses a Glean-managed OAuth app. This is the fastest way to get started. There is no additional configuration needed in the source system. Token refresh is handled automatically.

Use Central when:

  • You want the quickest setup with no OAuth app management overhead.
  • Your organization's security policy allows Glean-managed OAuth apps.

Custom​

The Custom option uses an OAuth app that your organization creates and manages in the source system. This gives you control over the app's permissions, branding, and token policies.

Use Custom when:

  • Your security team requires customer-managed OAuth apps.
  • You need to configure longer refresh token lifetimes to reduce re-authentication frequency. For example, Databricks recommends setting refresh token lifetimes to approximately three months on custom OAuth apps.
  • You need to control which API scopes the app can access.
tip

If teammates are being prompted to re-authenticate frequently with a custom OAuth app, check the refresh token lifetime policy in the source system. Extending the lifetime reduces how often teammates need to reconnect.

Troubleshoot a disabled Run agent button​

When you open a chat-triggered agent with tools you haven't authorized, Glean shows a Connect the following actions to run this agent screen. Select Connect for each listed action. The agent runs only after you authorize every tool on the screen, and Run agent stays disabled until then. You can connect the tools from this screen without opening Assistant. If you authorize every listed tool and Run agent stays disabled, ask your admin to check the agent's tool access.

Steps to re-authenticate a tool​

Most reconnect prompts clear up after you click Connect. If reconnecting doesn't help, each teammate can reset their own authorization from their Glean settings.

As a teammate​

  1. Run an agent that uses the tool, or trigger the tool directly in Assistant.
  2. When prompted, click Connect.
  3. Complete the authorization flow in the source system and return to Glean.

Reset your own authorization​

If clicking Connect doesn't fix the problem, or you authorized the wrong account, disconnect the tool and connect it again:

  1. In Glean, go to Your settings → Connectors.
  2. Select the connector for the tool, such as Gmail.
  3. Find the tool. If it shows as Authorized, open the three-dot menu next to it and select Disconnect. If it isn't authorized, skip to step 5.
  4. In the confirmation dialog, click Disconnect.
  5. Run an agent that uses the tool, and click Connect when prompted.
  6. Complete the authorization flow in the source system and return to Glean.

If the confirmation dialog names other tools, they share the same connection and Glean disconnects them too. Reconnect each one the next time you use it.

Disconnect is only available for tools that use OAuth for each teammate. If the three-dot menu doesn't offer it, your admin manages the tool's authentication.

If the tool still doesn't connect, ask your admin to contact Glean Support.

As an admin​

Admins can't clear another teammate's stored tool credentials from the Admin console. To reset a teammate's authorization, such as for Gmail tools:

  1. Ask the teammate to follow the steps in Reset your own authorization.
  2. If that doesn't work, contact Glean Support with the affected teammate's email address. Glean Support can reset that teammate's stored token.

If every teammate sees the same failure, resetting one teammate's token won't fix it. Check the tool's OAuth configuration and any required source-system approvals instead.

For remote MCP servers, changing the server URL, the dynamic client registration setting, or the OAuth client credentials disconnects every teammate who connected to that server. Each teammate reconnects the next time they use one of its tools.

Individual connector notes​

Jira​

  • The first time Jira tools are used at your organization, a Jira site admin must authorize the OAuth app for your Atlassian site. Until this is done, other teammates will see authorization errors when they try to connect.
  • If you manage multiple Jira sites, create a separate tool instance per site so each can be bound to its own connector instance.
  • This applies to both Cloud and Service Management — Jira Data Center (on-premises) isn't supported for tools.

For setup details, see Jira tools setup.

Salesforce​

  • Salesforce tools use OAuth for each teammate that's separate from the Salesforce connector used for search indexing. Connecting or disconnecting one doesn't affect the other.
  • If a teammate revokes the Glean connected app in Salesforce (under Setup → Connected Apps OAuth Usage or My Personal Information → Connections), they'll need to re-authorize. When they open an agent, they can select Connect for Salesforce on the launch screen. Run agent stays disabled until they authorize every tool listed for that agent.
  • If you use a custom OAuth app, you can configure the refresh token policy in the connected app settings in Salesforce to control token lifetime.

For setup details, see Salesforce tools setup.

Google​

  • Google Calendar, Google Docs, Google Sheets, and Gmail tools use OAuth for each teammate. Each teammate is prompted to connect the first time they run tools.
  • If a teammate revokes the Glean app from their Google account permissions, they'll need to reconnect the next time they run a Google tool.
  • To reset a Gmail or other Google tool authorization, the teammate disconnects the tool from their Glean settings and connects it again. See Reset your own authorization.
  • The newer Google Calendar, Google Docs, Google Sheets, and Gmail tools use OAuth user authentication and don't support Domain-wide Delegation.

For setup details, see Google tools setup.

Zendesk​

  • Zendesk access tokens are long-lived, so teammates should not need to reconnect Zendesk tools on a daily basis.
  • If teammates are seeing repeated re-authentication prompts, verify the tool's authentication configuration and contact Glean Support if the issue persists.

For setup details, see Zendesk tools setup.

Slack​

  • Slack tools use custom OAuth only. If your Slack app has token rotation enabled, configure token rotation correctly in your Slack OAuth app to avoid unexpected re-authentication prompts.

When to contact your admin vs. Glean Support​

Find your situation in the first column to see who can resolve it.

SituationWho to contact
You're prompted to reconnect and clicking Connect resolves itNo action needed — this is normal after a token expires
You're prompted to reconnect every time you run the toolYour admin — the tool's OAuth configuration or the source system's token policy may need adjustment
Clicking Connect fails or doesn't show an authorization screenYour admin — the OAuth app may be misconfigured or require site-level approval
You disconnected and reconnected the tool, and it still failsYour admin, who can ask Glean Support to reset your stored token
Assistant writes out instructions or a query instead of running the action, and no Connect prompt appearsNo admin action needed. Switch to Thinking mode (connected-app actions don't load in Fast or Adaptive-on-the-fast-path). See Glean returns instructions instead of running an action
Multiple teammates across your organization are affected at the same timeGlean Support — this may indicate a platform-level issue

See also​