Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User group #315

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions docs/features/user-group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
sidebar_position: 3
title: "👥 User Groups"
---
The User Group feature introduced in Open WebUI allows users with admin access to define and manage access levels for different groups of users. This feature enhances flexibility by providing the ability to assign varying permissions and roles to users based on their needs and responsibilities.

Administrators can manage users and groups directly from the User page from the **Admin Panel**, which includes two main sections: **Users** and **Groups**.

## Managing User Groups

### Roles

There are three default roles for users within a group:
1. **Pending**: Users awaiting approval for their account to be activated.
2. **User**: Standard users with permissions defined by the group settings.
3. **Admin**: Users with access to all features, models, tools, and other system capabilities.
:::note
Admins can view the chat history of users, including those with pending access.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unless specified with the env var to disable this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which env var?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look it up.

:::
### Groups

The **Groups** section in the Admin Panel enables administrators to:
- **Define Access Levels**: Adjust the default permission levels for members with a **user** role.
- **Create New User Groups**: Introduce custom user access levels with specific permissions.
- **Assign Permissions**: Control access to workspace, tools, models, and other features for each group.
- **Assign Users to Groups**: Assign users to specific groups.

:::note
For example, to add new tools, users must have **workspace permission** and access to **Tools**. The same applies to managing **Knowledge** and **Prompts**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird wording. please rewrite for clarity.

:::
:::info
Members with any access level (Admin, User) have access to use the tools, knowledge, and prompts.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird wording here as well, might as well delete this part.

:::
## Steps to Manage User Groups

1. **Navigate to the Admin Panel**:
- Open the Admin Panel and select the **Users** => **Groups** section.
2. **Create or Modify Groups**:
- To create a new group, click **Creat Group** and specify the group name and description.
- To modify an existing group, select it from the list and adjust the settings.

![admin managing user groups](/img/user-group-admin.gif)

3. **Assign Permissions**:
- Define the default permissions for users in the group by navigating to the **Groups** => **Edit User Group** => **Permissions**.
- Use the setting to give access to Workspace sections (Model, Tools, Promps, Knowledge), and Chat Permissions(File Upload, Chat Edit, Chat Delete, Temporary Chat).
:::tip
Admins cannot grant users direct access to Functions, as they are advanced features that can only be managed through the admin panel.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again with the wording, this can be interpreted in an incorrect way. be more precise here.

:::

4. **Manage Users**:
- Assign users to groups by navigating to the **Groups** => **Edit User Group** section.
- Within **Users** tab you can select the users who you want them in this group.

Binary file added static/img/user-group-admin.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.