Assign profile to user

Assign profile to user

Table of Contents

Description

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.

Syntax

thisapp.permissions.assignUserInProfile(<Email ID>,<Profile name>);

where,

  • <Email ID> - Specify the email address of the user. You can either specify an email address, for example, xxx@zoho.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.

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com