Fetch role of app user

Fetch role of app user

Note: This task is applicable only to Zoho Creator.

Overview

This deluge task fetches the role of a specified user.

Return

This task returns the role of a specified user. The returned data-type is TEXT.

Syntax

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

ParameterDescription

<variable>

(optional)

Variable which will hold the returned value.

<userDetail>

Email ID or the Username of the user whose role 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 throw a runtime error.

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 role of a user.

roleName = thisapp.permissions.roleForUser("john@zillum.com");

Share this post : FacebookTwitter

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

Write to us: support@zohodeluge.com