...
Retrieve
permission
fromcapability
Find all
LoadableRoles
with a capability permissionAssign capability to every
CapabilityRole
LoadableRole
byroleId
usingRoleCapabilityService
...
Retrieve
permission
fromcapabilitySet
Find all
LoadableRoles
with a capability set permissionAssign capability set to every
CapabilityRole
usingRoleCapabilityService
LoadableRole
byroleId
usingRoleCapabilitySetService
Adding new default roles
Define the JSON file with role-permissions relation objects for a Folio module:
Code Block { "roles": [ { "name": "{{roleName}}", "description": "{{role description}}", "permissions": [ {{folio permissions, assigned to a role}} ] } ] }
Place this file into the following folder: https://github.com/folio-org/mod-roles-keycloak/tree/master/src/main/resources/reference-data/roles
Create a pull-request for Eureka team with the new roles
When it’s merged - the new default roles will appear at the next snapshot environment deployed with the latest version of
mod-roles-keycloak