Get role of the user
The roleForUser Deluge task can be used in action scripts to determine the role of the user. The role can be determined either by using the username or the email address of the particular user.
thisapp.permissions.roleForUser("<User name/Email ID>");
- <Username / Email Id> - Specify the username or the email address of the user. You can either specify an email address, for example, firstname.lastname@example.org or add a Deluge expression that will return an email address, as value. For example, input.emailid, where emailid is the name of a form field.