Skip to content
Kamoorjdocs
Documentation

United Lesson Students

Manual and automatic allocation, restrictions and headcount checks.

On this page

Where to work

A category's roster opens at /united/item/:id/students/:categoryId. It combines eligible students from all category source groups while retaining each student's curriculum membership. This page requires separate access from the combined-subject list. For electives, record the subject choice first.

Permissions and scopes

Under Learning Management → United Lessons, open the students of the required category. The page requires united-lesson-students. Its API declares faculty (faculty) and profession (profession) scopes. A category can span professions. When loading its roster, configuring groups and saving bulk unit assignments, the server checks the parent record's faculties. Older single-source-group operations also check that group's profession.

Task Action permission
Load roster and group configuration united-lesson-student.category.index, united-lesson-student.category.group-configuration
Create or edit a named group united-lesson-student.category.groups.store, united-lesson-student.category.groups.update
Save group and instance assignments united-lesson-student.category.group-assignments.update
Run automatic allocation united-lesson-student.category.auto-groups
Apply or reset a template united-lesson-student.category.template.store, united-lesson-student.category.template.destroy

Named groups and templates

Create a “Practical” group with two instances, a total capacity of 24 students and the practical-class teaching type. Assign Anna to instance 2. With two instances, 2 is the highest valid number. To reduce the count to one, clear the second instance first. Before lowering total capacity, check how many students are already assigned.

Applying a virtual-group division template takes a snapshot of the current structure and assignments, copies the template group names, counts and capacities, and clears the previous distribution. Manual membership changes are restricted while the template is active. Reset restores the saved group structure and membership. Check the category and its roster before applying or resetting the template.

Manual allocation

  1. Verify the category, subject and teaching types.
  2. Check the roster against source-group curricula, years and semesters.
  3. Prepare a named group and its number of instances.
  4. Assign students to the group and a valid instance number for the relevant classes.
  5. Save, reopen and verify the assignments.
  6. Check teacher assignments in workload separately.

A named group and an instance are different levels. “Practice” with a count of 3 provides three instances. A named group's capacity is not the same as the per-instance limit used by automatic allocation.

Automatic allocation

united_lessons_auto_groups is disabled by default. When enabled, it runs on new-category creation. Existing categories use a separate automatic-allocation action with its own permission.

The system takes the current eligible roster, removes duplicates, sorts by student ID and allocates up to student_count students per instance. It creates one named group with the required instances and the category's teaching types. This is neither alphabetical allocation nor balancing by profession.

Example: 53 students, limit 20

Three instances contain 20, 20 and 13 students. No empty fourth instance is created. Source-group membership is retained. The instance count is 53 / 20 rounded up.

Restrictions

  • Empty rosters create no groups.
  • Zero or negative limits are rejected.
  • Repeated runs, active templates and custom group structures block automatic allocation.
  • A sole legacy default group with one instance may be reused; its roster is replaced with the current eligible roster.
  • Later roster changes do not automatically redistribute students.

Teacher assignments, hours and related workload rows are not recalculated by this action. Assign teachers to new instances separately.

Expected students and headcounts

Advance assignments persist, but expected students contribute to actual workload headcounts only after successful advancement into the target active year and semester. Moving to another curriculum does not add the student to the previous category's workload.

In the instance editor, Student count lets you specify a manual headcount for workload calculations. An explicit 0 counts as zero. With a saved current configuration, an empty field uses actual membership. For example, if 8 students are assigned and you enter 10, the workload uses 10 for this instance. Clear and save the field to count 8 again. Older groups may retain their earlier calculation policy until their settings are saved. This field changes the calculation without enrolling additional students.

Sorting

The default order groups students by source group; name sorting is also supported. Changing sorting does not change assigned instance numbers. A table row number is not a group number.

If saving fails

Check action permission, category eligibility, elective selection and valid instance numbers. An active template may require its supported reset before manual changes; reset can restore a saved state, so inspect its consequences first. Do not use repeated automatic allocation to update an already configured structure.

Implementation references

Updated Nov 27, 2026