Choose where you’d like to start

Assign profile to portal user

Note:

  • This task is applicable only to Zoho Creator.

Overview

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

Return

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

Syntax

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

ParamExplanation

<variable>

(optional)

Variable which will hold the returned value.

<email_ID>

Email id of the customer portal user to whom the profile 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 profile.  
  • 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.

<profile_name>

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

Points to note for this parameter:

  • If the specified profile 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 profiles 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" profile to a customer portal user.

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

Get Started Now

Execute