Determine permission of logged-in app user
Note: This task is applicable only to Zoho Creator.
Overview
This deluge task is used to check if the logged-in app user belongs to a specified permission or not.
Return
This task returns boolean value 'True' if the logged-in user belongs to the specified permission. Otherwise, it returns 'False'.
Syntax
<variable> = thisapp.permissions.isUserInProfile( <permission_name> );
| Param | Explanation | 
|---|---|
<variable> (optional)  | Variable which will hold the returned value. | 
| <profile_name> | Name of the permission to check if the logged-in user has been assigned to that permission. Points to note for this parameter: 
 Data type is Text.  | 
This task can be used in the following events
| When a record is Created | ||
| On Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Created or Edited | ||
| On Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Edited | ||
| On Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Deleted | ||
| On Validate | Yes | |
| On Success | Yes | |
| Other workflow events | ||
| On a scheduled date | No | |
| During approval process | Yes | |
| During payment process | Yes | |
| In a Custom Function | Yes | |
| In an Action item in report | Yes | |
Example
A sample snippet being used to determine if the logged-in user belongs to the "Read" permission.
boolVal = thisapp.permissions.isUserInProfile("Read");