Currently ConfigurationService contains two methods for managing Users in Roles:

  • addUserToRole(String role, String user)
  • removeUserFromRole(String role, String user)


For mananging Roles permissions we can add service method like:

  • updateRolePermission(String role, String permissionName, String permissionValue)


Examples: 

  • updateRolePermission("administrator","role.basic.canprodesign", "false")
  • updateRolePermission("administrator","role.basic.canaction" , "true")


Estimate for this improvement is 1day