Sharing and permissions
Who can share agents
You will be able to share your agents with others if:
- You are an admin or agent moderator
- Your admin has enabled the applicable default member sharing permission. See Enable group sharing for default members
Sharing and publishing are separate permissions. Editor access lets a user edit an agent, but it doesn't by itself allow the user to publish the agent.
Who can publish agents
You can publish an agent if one of the following applies:
- You are an admin or agent moderator
- You have the Agent Creator role and can edit the agent. Agent creators can publish private, shared, and company-wide agents, regardless of the default-member publish settings.
- As a default member with
agent-createpermission, you can publish private agents. For shared and company-wide agents, the applicable default-member sharing or publishing setting also has to allow it.
A default member without agent-create permission can't publish an agent, even if they have editor access.
How to share an agent
In the agent builder, click Share in the header. You can share an agent with individuals, departments, and identity provider groups when your admin has enabled group sharing. Each agent has one owner who is responsible for it.
Admins and Agent Moderators can share with all groups from the configured identity provider. Default members can share with groups they belong to when the admin enables the corresponding default-member permission. See Share agents with identity provider groups for setup details.
Your admin sets the maximum audience you can share an agent with. Depending on this setting, you can share with specific people, people in your department, configured identity provider groups, or everyone in your organization. The Share dialog shows only options within this limit. If your admin tightens the limit, existing shares remain unchanged, but new shares follow the updated limit.

Grant agent access from a chat
When you share a chat about a shareable published agent, select Also share agent in the share dialog to grant eligible recipients Viewer access. Glean selects this option by default. Agent sharing rules still apply, which means some chat recipients might not qualify for access.
Viewers can find the agent in the library, view its configuration, and run it. Viewers cannot edit the agent. A chat link alone does not grant agent access. Likewise, removing a recipient from a chat does not revoke agent access. To manage agent permissions, use the agent Share dialog.
For chat sharing steps and recipient eligibility details, see Share chats.
Transfer ownership
Only the current owner, Agent Moderators, and Admins can transfer ownership.
To transfer ownership:
- Open the agent in the Agent builder and click Share.
- Select the individual who should own the agent.
- Confirm the ownership transfer.
The new owner gets Owner access. The previous owner becomes an Editor and keeps edit access unless you remove it separately. The agent's creator history does not change when ownership transfers.
You can share an agent with departments and identity provider groups, but you can't assign them Owner access. Grant these audiences Viewer or Editor access instead.
Auto-generate agent description
When you share an agent that does not have a description, Glean automatically suggests an icon and an AI-generated description. You can review, edit, or replace the suggested description before confirming the share.
This feature helps keep the agent library organized and makes it easier for users to understand what each agent does. Descriptions remain optional—you can still share agents without one—but the auto-generation workflow reduces friction and encourages best practices.
To use autogenerated descriptions:
- Open the Agent Builder and click the Share button when you're ready to share your agent.
- If your agent doesn't have a description, a modal appears with a suggested icon and autogenerated description.
- Review, edit, or replace the suggested description.
- Confirm the share to save the description.
You can also use the Enhance button (sparkle icon) next to the description field in Agent Settings to generate or refine a description at any time, even after saving.
The table below shows the capabilities that are granted by each permission.
| No Access | Viewer | Editor | Owner | |
|---|---|---|---|---|
| See agent in the library | No | Yes | Yes | Yes |
| Run agent | No | Yes | Yes | Yes |
| View configuration of agent | No | Yes | Yes | Yes |
| Edit agent | No | No | Yes | Yes |
| Change permissions of agent | No | No | Yes | Yes |
| Delete agent | No | No | No | Yes |
| Transfer ownership | No | No | No | Yes |
- You can grant the Editor permission to users who collaborate with you on building an agent. Editors can edit your agent even if your admin did not give them permission to create agents.
- An agent can have only one owner at a time. The current owner, Agent Moderators, and Admins can transfer ownership.
- Super admins and Admins have the Owner permission on all agents at the company.
- These permissions will be enforced everywhere, including if the agent is called via Slack or the API.
Existing agents with multiple owners
Glean is transitioning agents to a single-owner model.
When this change is enabled, Glean automatically sends co-owners an advance notice email specifying the affected agents and the two-week migration timeline.
How to resolve ownership before the deadline: Before the migration date, an owner or admin can open Share for any affected agent and select a single primary owner.
Automatic migration fallback: Receiving the advance notice email does not change permissions immediately. However, if no one manually updates ownership before the migration date, Glean automatically assigns a single owner using the following rules and changes all other co-owners to Editors:
- If the agent creator is still an owner: The creator remains the primary owner.
- If the creator is no longer an owner: Glean selects the remaining owner whose name comes first alphabetically.
Creator history remains unchanged regardless of who becomes the primary owner.
When an owner is deactivated
When an agent owner is deactivated, Glean reassigns ownership to that person's manager. If manager information is unavailable, Glean assigns the agent to an Agent Moderator. The new owner receives an email notification and can transfer ownership again if needed.
Document access across surfaces
The document access an agent uses depends on where it's invoked and how it's configured.
In the Glean web app, the agent uses the signed-in user's individual permissions. The agent can reference any document that the user has access to, so responses are personalized to each user.
In Slack, permissions depend on the visibility setting you choose when publishing the agent to Slack:
- Only visible to user (with or without the option to share): The agent uses the requesting user's individual permissions, similar to the web app experience.
- Visible to everyone in the channel: The agent uses a broad-access model rather than your personal permissions. By default, it can reference public content across your organization and messages from the current Slack channel, if recognized. It does not check if every member of the channel has permission to view each document. Depending on the settings of your organization, it may also include approved code repositories.
This model prevents private or restricted content from accidentally being shared in public channels.
If an agent produces different or more limited responses in Slack compared to the web app:
- To align Slack behavior with the web experience, change the agent's Slack publishing setting to "Only visible to user" with an option to share. This lets the agent use each user's individual permissions.
- To keep responses visible to everyone, ensure that the reference documents for the agent meet the broad-access requirements of Option C. See Publishing to Slack.
Publishing options
The share panel displays publishing options that apply to the selected agent:
API
The API option appears first under Publishing options. Use it to create a Client API token for the selected agent.
An agent Owner or Editor can create and delete their own token from Share → API when they also have the Agent Creator role.
If an identity provider group gives you Editor access to an agent, Glean counts that as Editor access. Admins, Agent Moderators, and users with the API Token Creator role retain their existing token-management access.
Glean scopes tokens from this panel to the selected agent. API requests use the current permissions of the user who created the token, so the token does not grant access to other agents or additional source content.
Token security and maintenance
- The token secret appears only once during creation. Copy it and store it securely before you leave the page. You cannot recover it later.
- A scoped agent token expires one year after creation.
- To rotate a token, delete it and create a new one.
For more information, see API tokens.
Slack (agents with chat message triggers only)
Publishing an agent to Slack lets users interact with the agent in Slack. The agent can respond to messages, perform tasks, or provide information in Slack channels.