Moderator
2 years ago
#38507
::
Hi Vasileios,
You said that you update the role to assign it to the user. Try to use Simplifier.User.assignRole(userNameOrID, roleID) and Simplifier.User.unassignRole(userNameOrID, roleID) to add/remove a role to a user.
To get the correct roleID, execute Simplifier.Role.getAll() and copy the ID of the respective role.