Provide UserManager Role through a Server call or client action to a user
Application Type

Hi Guys,

I am exploring options on how to provide a user role "UserManager" automatically while creating a user from my mobile application. For example, i have created a client action that creates a new user. Along with that i want to assign this user with UserManager role as well. Can i achieve this?


Hi Learn It, 

Every role have three action - Check ( for checking the user role), Grant (for providing that user role to any user), Revoke (it revoke the role from user). 

When you creating the user Just use GrantUserManagerRole()  method to provide UserManager Role to that user. This  have input parameter UserId , so you need to pass newly created user id to method.



Plz, have a look into this in the attached OML.

Add this method after creating user with userID.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.