Choose where you’d like to start

Fetch profile name of app user

Note: This task is applicable only to Zoho Creator.

Overview

This deluge task fetches the profile name of a specified user.

Return

This task returns the profile name of a specified user. Data type is TEXT.

Syntax

<variable> = thisapp.permissions.profileForUser(<userDetail>);

ParamExplanation

<variable>

(optional)

Variable which will hold the returned value.

<userDetail>

Email ID or the Username of the user whose profile name will be returned. 

Points to note for this parameter: 

  • You can view the email addresses and users names of existing users in your account from the Account Setup page, and the existing users in your application from the Users page
  • If you find an email address in place of a username in the users page, it is due to that user not being registered with Zoho. Once the users create an account with Zoho, they will be assigned a username. 
  • If the user is not found, this function will return an empty text.

Data type is Text.

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 to fetch the profile name of a user with email address "john@zillum.com".

profileName = thisapp.permissions.profileForUser("john@zillum.com");

Get Started Now

Execute