Methods
-
<static> lookupUser( filter ) → {Array.<ListItem>}
-
<static> getUserConfiguration( [ userSysId [, force ] ] ) → {UserConfiguration}
-
Parameters
Name Type Attributes Default Description userSysIdsys_id <optional> For a specific user or the current user when undefined
forceboolean <optional> false Force Loading of user object
Returns
-
<static> hasRole( userSysId, roles, matchAll ) → {boolean}
-
Description
Validate if a user has roles from the list
Parameters
Name Type Description userSysIdsys_id rolesstring | Array.<string> List of roles to match the user for, either arrya or comma seperated string
matchAllboolean If true, user must have all roles, otherwise one of the roles will return true
Returns
-
<static> getUserRoles( userSysId ) → {Array.<string>}
-
Description
Retrieve a list of roles for the provided user
Parameters
Name Type Description userSysIdsys_id Returns