Skip to main content

Glean Settings

Embed Glean settings in your internal app so users can connect datasources that require separate authentication (for example, Slack RTS or GitHub), letting Glean access their private data on their behalf.

Beta

renderSettings is marked experimental in the SDK's type definitions and may change at any time.

portal.internal/engineering/settings
Search connectors
Connected
View and manage the connectors available.
GGitHub
JJira
SSlackConnect
CConfluenceConnect

Illustrative previewRendered with sample data — in your app, this component renders live against your organization's Glean instance.

Install the SDK

npm install @gleanwork/web-sdk

Render settings

  1. Create a container element with position: relative, display: block, and a defined size — at least 800px wide and 600px tall is recommended.

  2. Render the settings widget into your container:

import GleanWebSDK from '@gleanwork/web-sdk';

GleanWebSDK.renderSettings(document.getElementById('settings'), {
backend: 'https://{your}-be.glean.com/',
});
note

Unlike the other components, renderSettings is not exported individually — call it on the SDK's default export (or on window.GleanWebSDK when using the script tag).

For the full surface, see the renderSettings API documentation.

Options

SettingsOptions:

OptionTypeDescription
hideUnconfigurableDatasourcesbooleanHide admin-managed datasources that the user cannot configure themselves.

All components also accept the common Optionsbackend, authToken, theme, themeVariant, locale, and more.

warning

Browser security features can prevent the OAuth popup from informing the SDK that a user has successfully authenticated. For the highest reliability, use the Glean web app or the checkdatasourceauth API.