HAS_PERMISSION

Description

Returns TRUE if the context user has any of the specified custom permissions. Otherwise, returns FALSE.

Syntax

HAS_PERMISSION(...custom_permission_names)-> Boolean

Parameters

ParameterData TypeRequiredDescription
...custom_permission_namesStringYesOne or more API names of Custom Permissions to check against the current user’s permission sets.

Examples

HAS_PERMISSION("Admin_Access")
-- Returns TRUE if the context user has the "Admin_Access" permission; otherwise, returns FALSE.
HAS_PERMISSION("Manage_Cases", "View_Case_Data_List")
-- Returns TRUE if the context user has either the "Manage_Cases" or "View_Case_Data_List" permission; otherwise, returns FALSE.