Choose where you’d like to start

Assign permission to portal user

Note:

  • This task is applicable only to Zoho Creator.

Overview

This deluge task assigns a specified permission to specified customer portal user. 

Return

This task returns a MAP value in the format {"profileName":"<specified_permission>","screenName":"<specified_email>"}

Syntax

<variable> = thisapp.portal.assignUserInProfile(<email_ID>, <permission_name>);

ParamExplanation

<variable>

(optional)

Variable which will hold the returned value.
<email_ID>

Email id of the customer portal user to whom the permission must be assigned.

Points to note for this parameter:

  • You can specify multiple email addresses in a list format.
  • If the specified customer portal user does not exist, the new user will be added with the specified permission. 
  • You can view the email addresses of existing customer portal users in the application from the Customer Portal page.

Applicable data types are List and String.

<permission_name>

Name of the permission which needs to be assigned to the specified customer portal user.

Points to note for this parameter:

  • If the specified permission does not exist, execution of the script will be stopped during runtime and an error message will be displayed.
  • You can view the existing customer portal permissions in the Customer Portal Permissions page.

Data type is String.

This task can be used in the following events

When a record is Created
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Created or Edited
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Edited
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Deleted
On ValidateYes
On SuccessYes
Other workflow events
On a scheduled dateNo
During approval processYes
During payment processYes
In a Custom FunctionYes
In an Action item in reportYes

Example

A sample snippet assigning "Customer" permission to a customer portal user.

thisapp.portal.assignUserInProfile("john@zillum.com", "Read");

Get Started Now

Execute