ROLES

Return the Role IDs belonging to the currently logged in user.

Syntax

= ROLES()

Parameters

None

Return Type

String[]

Examples

Example

Returns

= ROLES().Length

The number of roles.

= IF(“Engineering” IN ROLES(), True, False)

 

= STRING.JOIN(“,”, ROLES())

To display a string of roles separated by comma.