How can I remove role assigned to a user programmatically?
Collection<RoleAssignment> roles = roleAssignmentRepository.getAssignmentsByUsername(user.getUsername());
for (RoleAssignment rl : roles) {
dataManager.remove(rl);
}
Above code gives error that meta class for RoleAssignment is not present.
Thanks and regards.