> For the complete documentation index, see [llms.txt](https://docs.chamilo.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chamilo.org/administration-guide/admin-guide/sessions/classes.md).

# Classes

Classes in Chamilo are predefined groups of users that can be enrolled in sessions as a unit. They simplify the enrollment process when you regularly train the same groups of people.

> Classes and [User Groups](https://docs.chamilo.org/administration-guide/admin-guide/users/user-groups.md) share the same interface. The only difference is the **group type** setting: choose "Class" when creating the group. Everything else — member management, visibility, and the interface itself — works identically.

## Creating a Class

1. From the administration panel, navigate to **Classes** (or User Groups and select the "Class" type)
2. Click **Create a class**
3. Enter a **name** (e.g., "Engineering Team", "New Hires March 2026")
4. Add **members** — search for and select users
5. Save

## Using Classes for Enrollment

When creating or editing a session, you can enroll an entire class at once instead of adding users individually:

1. Open the session enrollment settings
2. Click **Add a class**
3. Select the class
4. All members of the class are enrolled in the session

## Managing Classes

* **Edit** — Change the class name or update membership
* **Add/remove members** — Keep the class roster up to date
* **Delete** — Remove the class (does not affect the member accounts or their existing enrollments)

## Integration API

Platform administrators can use the [Class Subscriptions API](https://docs.chamilo.org/developer-guide/developer-guide/api/class-subscriptions.md) to inspect membership and replace a class's users, sessions and courses. Unlike adding one user in the administration interface, each API `PUT` replaces the **complete** corresponding list. Always read the current subscriptions before sending an update.

## Filtering class members using extra fields

When assigning users to a class, use **Extra fields** to filter the available users by a searchable user-profile field. Choose the field, enter or select a value, and add matching users from the available-users panel. Depending on the extra field type, the filter can offer a text input or predefined choices.

Only user extra fields configured as searchable/filterable are offered. Existing class members remain in the selected-members panel while you filter the available users; filtering must not silently remove them. Verify the full selected-members list before saving. See [class membership filters PR #9364](https://github.com/chamilo/chamilo-lms/pull/9364).

## Tips

* **Create classes for recurring cohorts** — If you run the same training for different teams, create a class for each team
* **Update before each session** — Review class membership before enrolling a class in a new session to ensure the roster is current
* **Combine with CSV import** — Import class membership from a CSV file for large groups
