Checks if the TIS user has the specified role.

Syntax

XIH.HasRole(roleName)

Parameters

Parameter

Data type

Description

Sample

roleName

string

String specifies the name of the role.

"PowerUser"

Remarks

Returns a boolean.

Examples

XIH.HasRole("PowerUser")

Related