Assign profile to user
The assignUserInProfile Deluge task can be used in action scripts to assign profile to the existing users with the corresponding email address. If the email address does not correspond to an existing user then a new user will be added and the profile will be assigned. This feature enables the owner of an application to assign specific profiles to the user thus ensuring permissions are granted to users based on their necessity.
thisapp.permissions.assignUserInProfile(<Email ID>,<Profile name>);
- <Email ID> - Specify 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.
- <Profile name> - Specify the profile name that has to be assigned to the user. The profile name can be the predefined or a custom one created by the admin.