Skip to main content

Roles

In OpenVLE, roles serve to bundle and centrally manage system-wide permissions.
Roles simplify the assignment of rights to user groups and ensure that similar users (e.g., instructors, administrators, participants) automatically receive the appropriate access rights.


Where can I find this section?

Navigation:
Via main menu: Access Control -> Roles
Alternatively accessible via: Linked via User or Permission views

Features at a Glance

  • Create and manage roles for different user groups
  • Assign and remove permissions within a role
  • View which users are assigned to a role
  • Copy existing roles for faster creation of similar permission sets
  • Delete roles that are no longer needed (if not in use)

Key Fields at a Glance

Field nameDescription
DescriptionBrief explanation of the tasks or responsibilities of this role, e.g., "Responsible for creating and managing course environments".
Key (Slug)Short name of the role. Used internally within OpenVLE, e.g., for API or permission assignments.
NameThe name of the role, e.g., "Environment Manager" or "1st Level Support". Displayed in lists and associations.

Creating a Role

  1. Open the Access Control -> Roles section in the main menu.
  2. Click Add to create a new role.
  3. Enter a meaningful name and an optional description.
  4. Save the role to make it available.
  5. Assign the desired permissions to the role.
  6. Then assign users to this role.

Editing a Role

  1. Open the Access Control -> Roles section in the main menu.
  2. Search for the desired role in the list.
  3. Click Edit, or open the role's context menu and select Edit.
  4. The form displays all current role data.
  5. Adjust the desired fields — for example, Name or Description.
  6. Save the changes.
note

Changes to roles take effect immediately for all users assigned to that role.
Therefore, review permission changes carefully before applying them.


Deleting a Role

  1. Open the Access Control -> Roles section in the main menu.
  2. Search for the desired role in the list.
  3. Click Delete, or open the role's context menu and select Delete.
  4. Confirm the deletion in the displayed dialog.
  5. The role will then be permanently removed.
warning

A role can only be deleted if no users are assigned to it.
If users with this role exist, remove the assignments first before deleting the role.


Example or Use Case

Example: Create a role for environment managers

An administrator wants to give all environment managers identical rights without having to configure each user individually. They create the Environment Manager role, add permissions for viewing and editing environments, VM templates, and VMs, and then assign this role to all corresponding users.


Notes / Special Considerations

  • Roles can only contain global permissions.
  • System roles (e.g., Administrator) cannot be deleted or fundamentally changed.
  • Roles currently assigned to users can only be deleted after the assignments are removed.
  • Changes to a role automatically affect all associated users.
  • When copying a role, all permissions are copied, but no user assignments.

Relationships to Other Objects

Many objects in OpenVLE are related to other elements within the system. The following overview shows which relationships exist and whether they trigger certain automations.

ObjectDescriptionAutomatic behavior
ChangelogsAll changes to the object are automatically logged.Automatic removal when the object is deleted.
PermissionsAny number of permissions can be assigned to a role.No automations.
TagsObjects can be tagged with any number of tags to categorize or filter them.Automatic removal when the object is deleted.
UsersAny number of users can be assigned to a role.No automations.

Required Permissions

The permissions required for actions can be assigned via roles or individually. If you lack certain rights, the corresponding functions in the user interface are hidden or disabled.

ActionRequired permissionPathAdditional information
View rolesroles_read/
Create rolesroles_create/
Edit rolesroles_update/
Delete rolesroles_delete/
Assign permissionsobjectpermissions_create/
Remove permissionsobjectpermissions_delete/