Forum

Jennifer Häfner
Moderator
    Has successfully completed the online course Intermediate (200)
    Has successfully completed the online course Advanced (300)
    Has successfully completed the online course Basics (100)
    Has successfully completed the online course Advanced (310)
    Has successfully completed the online course Advanced (320)
    Has successfully completed the Intermediate Certification
    Has successfully completed the Advanced Certification
2 years ago #38507
Up
0
Down
::

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.