Skip to main content

Overview

Groups let you partition your data sources by user groups so that the same guru returns role-appropriate answers. The same question asked by a sales team member and a support engineer can return different context, drawn only from the sources each user is allowed to see. Groups are distinct from Gurubase RBAC roles. Roles control who can manage a guru; Groups control what content each user can see when they ask a question. There is one special built-in group: End Users. Members of this group can only ask questions and cannot access the admin panel. See Team Management - End Users Group for details. The End Users group can also be used as a regular content group for data source visibility (e.g., assign certain sources as visible only to End Users).
Group-based access control applies to authenticated users on the Gurubase web UI, and to the widget when it can prove who is asking with a verified identity token (see SharePoint (Entra ID)). The public /api/v1/<guru>/answer/ endpoint, Slack, Discord, GitHub, Jira, Zendesk, MCP server, and chat-completions endpoints remain Everyone-only for now. See Where It Applies for the full list.

Concepts

ContentGroup

A ContentGroup is a named collection of users scoped to a single guru. Group names are unique per guru (two different gurus can both have an “Engineering” group without conflict), and a user can belong to multiple groups inside the same guru.

Membership

A Membership links one user to one ContentGroup inside one guru. Memberships are assigned manually by a guru admin from the Team page.

Visible To

Every data source has a “Visible to” field. When Visible to is empty, the source is marked “Everyone” and every authenticated user of the guru sees it in their answers. When Visible to lists one or more groups, only users with membership in at least one of those groups can see the source. Everyone and specific groups are mutually exclusive: selecting a group clears Everyone, and selecting Everyone clears any selected groups. A source with the mandatory label follows the same rule: it is added to every answer for the users who can see it, and to no one else.

Setup

1

Open the Team page

Go to your guru’s Team page and switch to the Groups tab. You must be a guru admin (or a super admin on self-hosted) to see this tab.
2

Create a group

Click Create Group and enter a name (for example, Engineering). The name is unique per guru; you cannot create two groups with the same name inside one guru.
3

Assign members

From the Members tab, use the Groups column multi-select to assign each team member to one or more groups. Users without any group assignment are marked as Everyone-only and can only see Everyone sources.
4

Set Visible to on a data source

Open a data source’s edit modal (or select multiple sources and use the bulk Set Visible to action). Pick Everyone or one or more specific groups. Text sources, edited answers and GitHub repositories can also be restricted when you add them, from the same field in their add dialog. Selecting a group clears Everyone; selecting Everyone clears any previously selected groups.
5

Verify by asking a question

Sign in as a user who is a member of the group you assigned to the source and ask a question that only the restricted source can answer. The answer should include content from that source. Then sign in as a user who is NOT in the group and ask the same question; the answer must not reference any restricted content.

Worked Example

A company uses a single Gurubase guru to answer questions across its Engineering, Sales, and Support teams. The team admin creates three ContentGroups and assigns each data source to the appropriate group.

Groups and Memberships

Data Sources

Shared Question

All four users ask the same question:
What do we tell a customer asking about enterprise pricing?

Observed Answers

The same question produces four different answers because the backend resolves each user’s ContentGroup membership server-side and filters the retrieved chunks before the LLM assembles the answer.

Preview Answers as a Group

Guru admins can check what a group’s members would see without joining the group. On the guru’s chat page, open Ask as in the question box and pick one or more groups, or No group (Everyone only) to see what a user without any group gets. The control appears only for guru admins and only when at least one source is restricted to a group.
  • The answer is retrieved exactly as for a member of the chosen groups: Everyone sources plus the sources visible to those groups. Your own memberships are not added.
  • The choice is fixed for the conversation. Follow-up questions keep the same groups, and the question box shows them as Asked as. Start a new chat to change them.
  • Preview questions are recorded with the groups they were asked as. In Analytics they are listed under the Gurubase UI (asked as group) source, so filtering on Gurubase UI shows end-user traffic only.
  • A preview answer is visible to guru admins only, never to end users who open its link.

Where It Applies

Group access depends on whether the surface can prove who is asking. The table below shows every user-facing answer surface and its current status.

Refusal messages per group

When a Guru cannot answer, it shows a refusal: one message when the sources hold no reliable answer, another when the question is outside the Guru’s topic. A group can replace either one for its members, so the same Guru can send field staff to their team lead and office staff to HR. Set them under Team → Groups, edit a group, Refusal messages. Leave a field empty to keep the Guru’s message. A user in several groups sees a group’s message only when every group of theirs that sets one sets the same text. When their groups disagree, or none sets one, they see the Guru’s message. The groups are the ones resolved for the request, as listed in Where It Applies, so a surface that is Everyone-only always shows the Guru’s message. The group’s “no reliable answer” message also guides answers that are only partly covered by the sources: the Guru says what the sources do not cover and points the user to the contact that message names, unless a source names a more specific contact for that case.

Note for the assistant

The Guru does not otherwise know who is asking, so when an answer says whom to contact, it guesses from the question. A group’s Note for the assistant tells it: who the group’s members are and whom they turn to. For example, a store crew group can say “Store employee. Takes HR questions to their store manager first.”, and a head office group “Head office employee. HR questions go to their HR Business Partner.” Set it under Team → Groups, edit a group, Note for the assistant (up to 500 characters).
  • Only the asker’s own groups are used, and only those with a note. A user in a store group and a store managers group gets both notes; a head office user never sees the store notes.
  • The note shapes whom the answer points to and how it addresses the person. It does not change which sources they can see, and the answer still comes only from those sources.
  • Notes are never shown to users. A Guru whose groups have no notes answers exactly as before.
  • In Ask as, the chosen groups’ notes are used, not your own.
  • The groups are the ones resolved for the request, as listed in Where It Applies, so an Everyone-only surface uses no note.

Changing who can see a source

Restricting a source that was previously visible to everyone takes effect immediately for retrieval, but an answer that already quoted it is stored text, not a live lookup. So a change to any source’s visibility also retires the answers that were built before it: the next person to ask gets a fresh answer, drawn only from what they may now see. Editing a group’s note for the assistant, or renaming a group that has one, retires stored answers the same way, since those answers were written with the old note. What you will notice is that the first person to ask a previously answered question after such a change waits for a new answer instead of getting the stored one. A guru that has never restricted a source is unaffected.