Configuring roles
Last updated
Last updated
In a new implementation of Valtimo there are no roles configured by default. ROLE_ADMIN
always has access to the admin menu in order to allow primary setup. Access Control permissions can be configured by defining PERMISSIONS for each ROLE.
There are three ways of configuring roles in Valtimo.
Upload a valid permissions JSON via the UI
Edit the role directly via the UI
Place a valid permissions JSON in the codebase via an IDE
Go to the Admin
menu
Go to the Access Control
menu
Click on Add new role +
The "Add new role" modal opens and the new role name can be entered. Click create to add the role to the list. Each role name within Access control needs to be unique.
Roles can be edited by clicking on that role. This opens the detail page for that role.
Then, by clicking on the three dots next to the Save
button, the role can be edited by clicking on "Edit metadata".
Roles can be deleted by first clicking on that role. Then, by clicking on the three dots next to the Save
button, the role can be deleted. Take caution, as deleting roles will also result in the deletion of related permission. Deleting roles will not delete the role in Keycloak.
Roles can also be deleted, or exported in bulk. These options will only show when one or more roles have been selected.
Exporting a role not only exports the role itself, but also the configured permissions. This can be used to create or update auto-deployment files.
When exporting roles, there are two options. Either to export all selected roles as one single file, or alternatively downloading separate files per role.
Roles can also be deleted. Take caution, as deleting roles will also result in the deletion of related permission. Deleting roles will not delete the role in Keycloak.