Unable to run GrantUserManagerRole

Unable to run GrantUserManagerRole

  

I am trying to create a user registration page, but in order to create a new user (with User_Create), the UserManagerRole needs to be applied. It is not allowing me to place the GrantUserManager action within my logic.

see attachment (Help.png)


Please help...

Hi Nicholas,


That's because it's a server action/function that must be executed on the server side.

On your User_Create action that you already have, you should place the GrantUserManagerRole inside. This way, it will run on the server and will improve performance since it goes only 1 time to the server and does everything on that access.

Let me know if it helped.