Skip to main content

Glean in Microsoft Teams: Admin guide

Glean in Microsoft Teams brings Glean's enterprise search and generative AI experience directly into Teams, so users can find information, ask questions, and get personalized answers without leaving their flow of work. Users can ask questions in direct messages and standard channels. Channel replies appear in the thread and are visible to everyone in the channel.

If your organization already uses Glean in Teams for direct messages, you don't need a new app. Update your existing app to add channel support. See Update an existing deployment for channel support.

To give a specific agent its own Teams app, create a Microsoft Teams App service credential and link it to the agent. These standalone apps work in direct messages only and are separate from the main Glean app. See Set up standalone Teams apps for agents.

Requirements​

You need admin access to each of the following portals to complete the setup:

Setup overview​

Phase 1

Set up Azure Bot and Glean app

Create Azure Bot · Configure app · Set up Teams package

Collect: Application (client) ID, Client secret

→

Phase 2

Deploy via Teams Admin Center

Publish app · Manage access · Pin to sidebar

Collect: Glean in Microsoft Teams App ID

→

Phase 3

Enable in Glean Admin console

Save setup · Enable app · Configure channels

Integration complete

Phase 1: Set up Azure Bot and Glean app​

Create the Azure Bot​

  1. In the Azure portal, search for Azure Bot in the search bar and select it from the Marketplace results (not Services). Alternatively, go directly to the Create an Azure Bot page.

  2. Click Create, then on the Basics tab, configure the following:

    FieldValue
    Bot handleGlean
    SubscriptionYour Azure subscription
    Resource groupClick Create new
    RegionSelect the Azure region closest to your Glean deployment. For example, if your deployment is in GCP europe-west4, select West Europe; if it is in AWS us-west-2, select West US 2.
    Pricing tierSelect the F0 (Free) tier. Standard channels such as Microsoft Teams offer unlimited messaging at this tier. For a full breakdown of channel types and messaging limits, refer to the Azure Bot Services pricing page.
    Type of AppSingle Tenant
    Microsoft App IDCreate new Microsoft App ID

    Create an Azure Bot — Basics tab

  3. Click Review + create, review the configuration, then click Create.

    Create an Azure Bot — Review + create tab

  4. When the deployment completes, click Go to resource.

    Azure deployment complete

Configure the bot​

  1. In the bot resource, select Bot profile in the left navigation. Upload the Glean color icon and set the display name to Glean.

  2. Select Configuration in the left navigation. In the Messaging endpoint field, enter your Glean backend URL followed by /datasources/ms_teams/activity. For example: https://[your-instance]-be.glean.com/datasources/ms_teams/activity.

    Verify that Microsoft App Type is set to Single Tenant, then click Apply.

    Azure Bot configuration — messaging endpoint

  3. Select Channels in the left navigation. Under Available channels, click Microsoft Teams. Select Microsoft Teams Commercial and click Apply.

    Azure Bot channels — Microsoft Teams configured

  4. Select Configuration again and click Manage Password (next to the Microsoft App ID field). On the Certificates & secrets page, click New client secret, add a description, then click Add.

    note

    Copy the client secret value immediately — you cannot retrieve it after navigating away. You will need this value in Phase 3.

  5. Select Overview in the left navigation and copy the Application (client) ID. You will need this value in Phase 3.

    Azure App Registration overview — Application (client) ID

Create the Glean app​

  1. Go to the Teams Developer Portal. In the left navigation, select Apps, then click + New app.

    Teams Developer Portal — Apps page

  2. In the Add app dialog, enter Glean as the name and click Add.

    note

    This is the name that appears in the Teams Admin Center and to end users in Microsoft Teams.

    Teams Developer Portal — Add app dialog

  3. In the Basic information tab, fill in the following fields:

    FieldValue
    Short descriptionTrusted search and generative AI for work.
    Long descriptionGlean unlocks your company's knowledge and enables powerful work AI for everyone.
    Developer or company nameGlean Work
    Websitehttps://www.glean.com
    Privacy policyhttps://www.glean.com/privacy-policy
    Terms of usehttps://www.glean.com/terms
  4. In the Application (client) ID field, paste the Application (client) ID you copied earlier, then click Save.

Customize branding​

  1. In the left navigation, select Branding. Upload the color icon and outline icon, and set the accent color to #343ced.

    Teams Developer Portal — Branding page

Configure app features​

  1. In the left navigation, select App features, then click Bot.

    Teams Developer Portal — App features

  2. Select Enter a bot ID and paste the Application (client) ID you copied earlier. Under Select the scopes where people can use your bot, select Personal and Team. The Personal scope enables direct messages with Glean, while Team allows Glean to be added and @mentioned in channels. Click Save.

    Bot configuration with Personal and Team scopes selected

  3. Click Add a command to add starter prompts. Starter prompts appear when users first open the Glean app in Teams. The following prompts are recommended:

    Command titleCommand
    Summarize documentsSummarize <linked documents> and highlight key points on specific topics
    Help me writeWrite an [email, company announcement, etc] on [project explanation]
    Who should I askWho is the subject matter expert on [topic] to ask about [describe question]?
    Learn more about a projectResearch a new project. Identify insights, resources, and subject matter experts
    Ask about a company policyFind and research company policies and answer specific questions.
    Learn about a teamResearch a team's focus area and current projects.
    Prepare for an executive reviewIdentify questions that could be asked during a presentation to an executive.
    Explain acronymExpand and provide a detailed explanation of the given acronym.
    BrainstormBrainstorm ideas for a presentation on [Project Name]
    Explain a technical termProvide a clear and simple explanation of a technical term.
  4. Select Permissions in the left navigation. Under Team permissions, select ChannelMessage.Read.Group. This permission allows Glean to read channel messages in the team where the app is installed. The custom channel list in Glean controls where Glean replies. It doesn't narrow the Microsoft permission.

    ChannelMessage.Read.Group permission

  5. Refresh the page and return to App features. If a Personal app entry was added automatically, open its menu and click Delete.

    App features — delete Personal app

Publish the app to your organization​

  1. In the left navigation, under Publish, select Publish to org. Click Publish your app, then select Publish to your org.

    Teams Developer Portal — Publish to your org

    note

    Deployment to specific groups or users is managed in the Teams Admin Center during Phase 2.

Phase 2: Deploy via Teams Admin Center​

Publish the Glean app​

  1. Go to the Teams Admin Center. In the left navigation, go to Teams apps → Manage apps. Search for Glean. The app status is Blocked by default.

    Teams Admin Center — Glean app with Blocked status

  2. Click the Glean app to open its settings, then click Publish to allow it.

    After publishing, it takes approximately 24 hours for the Glean app to appear in the Teams store.

  3. Copy the App ID shown on the Glean app page — you will need this value in Phase 3.

Manage access (optional)​

  1. By default, the Glean app is available to everyone in your organization. To restrict access, go to the Users and groups tab within the Glean app settings and click Edit availability.

    Teams Admin Center — Edit availability options

Pinning the Glean app to the Teams sidebar makes it immediately accessible to users from the main Teams interface.

  1. In the Teams Admin Center left navigation, select Teams apps → Setup policies. Select the policy that applies to your target users, such as the Global (Org-wide default) policy.

    Teams Admin Center — App setup policies list

  2. Enable User pinning. Under Installed apps, click Add apps and add Glean. Your policy may already have other apps installed.

    Teams Admin Center — Installed apps in the selected policy

  3. Under Pinned apps, click Add apps, search for Glean, click Select, and click Add. Glean is added to the existing list of pinned apps in the policy.

    Teams Admin Center — Add Glean to pinned apps

  4. To make Glean more discoverable, use the Move up button to reorder Glean to the top of the pinned apps list.

    Teams Admin Center — Glean moved to the top of pinned apps

  5. Click Save.

tip

If your organization uses multiple setup policies for different user groups, repeat steps 1–5 for each policy that applies to users who should have Glean pinned.

Phase 3: Enable Glean in Microsoft Teams in the Glean Admin console​

Enter the app credentials, turn on Glean in Teams, and configure channel replies.

Prerequisites​

Enable Glean in Microsoft Teams channels under Admin console → What's new → Feature rollouts → Beta. See Self-serve beta features and managed rollouts.

The steps in this phase apply only after you enable the feature. If it isn't enabled, set up direct messages from Connectors → Microsoft Teams → Glean in Microsoft Teams instead.

Enter credentials in the Glean Admin console​

  1. Go to Admin console → Embedded integrations → Glean in Microsoft Teams. Select the Microsoft Teams connector instance you want to configure.

  2. Expand Setup and enter the values collected during setup:

    FieldSource
    Application (client) IDCopied from Azure App Registration overview (Phase 1)
    Client secretGenerated from Azure Certificates & secrets (Phase 1)
    Glean in Microsoft Teams App IDCopied from Teams Admin Center (Phase 2)

    These steps use a client secret. If Setup requests certificate files instead, provide the bot certificate and matching private key required by your organization's authentication configuration.

  3. Click Save in Setup and resolve any validation errors.

  4. Turn on the Glean in Microsoft Teams switch. Saving credentials alone doesn't turn on channel replies. Continue with Enable channel replies.

Enable channel replies​

Open Admin console → Embedded integrations → Glean in Microsoft Teams and select the connector instance you configured.

  1. Check that the Glean in Microsoft Teams switch is on. In Channels, turn on Allow replies in channels.

  2. Review the source information or linked knowledge profile in Channels. Channel replies currently use the shared Company knowledge profile, so changes to it apply everywhere it's used. Channel replies are visible to all channel members, so include only content intended for that audience. See Knowledge profiles.

  3. Choose where Glean can reply:

    • All channels where Glean is added allows replies in supported channels where the app is installed.
    • Custom channel list limits replies to the channels you select. Choose at least one channel. To enter channel IDs manually, click Can't find a channel?.
  4. Click Save in Channels and confirm any prompted changes.

Selecting channels in Glean doesn't install the app in Teams. Continue with Add Glean to teams.

Add Glean to teams​

After your Teams administrator publishes the app in the Teams Admin Center and you enable channel replies in Glean, install Glean in your intended teams. Admin installation makes Glean available in all standard channels of each selected team, so users don't need to install it themselves. Glean replies only in channels allowed by your channel settings.

  1. In the Teams Admin Center, go to Teams apps → Manage apps. Search for and open the Glean app.

  2. Click Add to team.

  3. In the Add to team pane, search for and select the team, then click Apply.

  4. Repeat the installation for each team where you want Glean available.

  5. Open an allowed standard channel in a team where you installed Glean. Type @Glean, select Glean from the mention suggestions, and ask a test question. Confirm that Glean replies in the thread.

For more information, see Microsoft's Install apps in an existing team.

Share the user guide so teammates know how to ask questions and follow up in threads. See Glean in Microsoft Teams: User guide.

Update an existing deployment for channel support​

Update the existing Teams app, approve the update, and enable channel replies in Glean. You don't need to create a new app or replace working credentials to add channel support.

Update permissions and bot scope​

  1. Go to the Teams Developer Portal. In the left navigation, select Apps and open your existing Glean app.

  2. Select Permissions in the left navigation. Under Team permissions, select ChannelMessage.Read.Group if it is not already selected. Click Save.

    Team message read permission selected

  3. Select App features in the left navigation, then open the Bot configuration. Under Select the scopes where people can use your bot, select both Personal and Team. Click Save.

    Bot configuration with Personal and Team scopes selected

Update the app manifest​

  1. Select App package editor in the left navigation and open manifest.json.

    App package editor with the manifest.json file

  2. Bump the minor version number. For example, if the current version is 1.0.0, change it to 1.1.0.

    Version field in the Teams app manifest

  3. If the manifestVersion value is 1.25 or higher, add the following entry to the manifest:

    "supportsChannelFeatures": "tier1"

    Manifest entry enabling tier1 channel features

  4. Click Save, then click Update to update the app package.

    App package editor with the Update button

  5. Click Save in the Review changes dialog.

    Review changes dialog for the updated manifest

Publish the update​

  1. In the left navigation, under Publish, select Publish to org. Click Submit app update.

    Publish to org page with Submit app update

  2. Go to the Teams Admin Center. Navigate to Teams apps → Manage apps and search for Glean.

  3. Open the Glean app and click Publish update.

    Glean app in the Teams Admin Center with Publish update

  4. In the confirmation dialog, check that the scope shows Personal, Team, then click Publish to approve the update.

    Publish confirmation showing Personal and Team scopes

    The update can take up to 24 hours to appear in your organization.

  5. Enable channel replies in Glean using the existing connector instance. See Enable channel replies.

  6. After the updated app is available, add Glean to your intended teams and test a question in an allowed channel. See Add Glean to teams.

Channel support limitations​

The following limitations apply to channel replies:

  • Glean supports standard channels, not private or shared channels.
  • Users must mention Glean for each question, including follow-ups in a thread. Glean doesn't respond proactively.
  • Standalone Glean agent apps aren't supported in channels.
  • Responses are visible to everyone who can read the channel. Use direct messages for questions involving personal sources.

Set up standalone Teams apps for agents​

Configure and enable Glean in Microsoft Teams for the app's tenant before linking a standalone app. Keep the main Glean app's credentials and channel settings unchanged.

Create a separate app for the agent:

  1. Create and publish the agent's Teams app. Use the Personal bot scope for one-to-one direct messages. For a bot-only integration that doesn't sync user identities, grant the app registration for the bot the Microsoft Graph application permission User.Read.All with admin consent. See Set up Microsoft Teams service credential.
  2. Go to Admin console → Tools → Service credentials, click Add, and select Microsoft Teams App. Save the app's client ID, client secret, tenant ID, and Teams app ID in this credential.
  3. Link the credential to a published agent with a Chat message trigger using either path:
    • In Agent builder, open Share → Publishing options → Microsoft Teams, turn on Make this agent available in Microsoft Teams, and choose the credential under Select apps to deploy this agent to. For workflow agents, click Update, then Done. If Next appears instead, click it and review the agent details before confirming. For autonomous agents, click Save.
    • In Admin console → Embedded integrations → Glean in Microsoft Teams, select the connector instance. In the Glean Agents section, click Add agent. Select the agent and its credential, then click Save.

Each credential links to one agent at a time. An agent can use several apps, and the service-credential flow doesn't impose a limit on the number of linked agents. You must have permission to edit the agent and configure its publishing settings. Saving app links in the Admin console doesn't publish pending draft edits.

Users need access to the linked agent in Glean as well as permission to install the Teams app. Standalone apps don't respond in channels or group chats.

To remove an app link, use its unlink control in Glean Agents and confirm with Unlink, or remove the app in the agent's publishing settings and save. See Glean Agents in Microsoft Teams.

Troubleshooting​

I can't add an agent under Embedded integrations​

Create a Microsoft Teams App service credential first. In Admin console → Embedded integrations → Glean in Microsoft Teams, select the connector instance for the app's tenant. Find the Glean Agents section. Publish the agent with a Chat message trigger. Confirm that you have permission to edit the agent and configure its publishing settings. Check the credential's audience and whether another agent already uses it.

For the main Glean app, follow Enter credentials in the Glean Admin console. Don't replace the main app's credentials to publish a standalone agent app.

Bot installed but not responding (401 Authorization has been denied)​

If the Glean bot is installed in Microsoft Teams and appears to be correctly configured, but replies from the bot fail with a 401 "Authorization has been denied" error (or similar) from Microsoft's Bot API, the issue is likely caused by an incorrect sign-in audience setting on the Azure app registration.

Symptoms​

  • The Glean bot is installed in Microsoft Teams and visible to users.
  • The bot can receive user messages.
  • Graph API calls (such as fetching chat IDs) work correctly.
  • However, when the bot attempts to reply, the response fails with a 401 "Authorization has been denied for this request" error from the Bot Framework.

Cause​

This error occurs when the Azure app registration used for the Glean Teams bot is configured as multi-tenant instead of single-tenant. The Bot Framework requires the app registration to use single-tenant authentication for proper authorization when sending replies.

Resolution​

Follow the steps in Migrate the Teams bot to Azure Bot Service to switch the bot to single-tenant mode and resolve the authentication error. Allow up to 60 minutes for the change to propagate after completing the migration.