top of page

Moji5 Knowledgebase

Get Role Users & Check If User Has Role

User Roles can be thought of as "permission groups" that define the access for that certain users.


1) How to get role users


Create a new behavior. Put the appropriate caption. Click Action wizard.


Click Create an action.


Click Get role users.


Click Save changes.


Click View code. Specify role name and put below code (line 2 to line 10). Check syntax, if no error then click Save and close.


Click Create now.


How it look in the form:


2) How to check if user has role


Create a new behavior. Put the appropriate caption. Click Action wizard.


Click Create an action.


Click Check for roles.


Click Save changes.


Click View code. Specify role name. Check syntax, if no error then click Save and close.


Click Create now.


How it look in the form:


Comments


bottom of page