Get profile of the user
The profileForUser Deluge task can be used in action scripts to determine the profile of the user. The role can be determined either by using the username or the email address of the particular user.
thisapp.permissions.profileForUser("<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, email@example.com 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.