Reference > Expressions > Built-in Functions > Current User Functions > CurrentUserRole

CurrentUserRole

Returns the role associated with this session. For information about roles, see About Roles.

Syntax

CurrentUserRole()

Enabled for

Search/Dashboard Yes
Business Rules Yes
Quick Actions Yes
Workflow Objects No
Reports No

Parameters

none  

Return Value

Text value.

Example

$(CurrentUserRole())

If you are an administrator, the above example returns "Admin".

Another use of this function is that you can use the output of this function to set the conditional visibility. For example, you can hide the quick action menu for everyone with the role of Service Desk Analyst.