...
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": "Check-in All", "description": "Role for Check-in All", "permissions": [ "ui-checkin.all" ] } ] }
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