c_SSPUserService

Description

Part of ServicePortal API Library, documentation: https://confluence.kpn.org/display/SNBR/API+Library

Methods


<static> lookupUser( filter ) → {Array.<ListItem>}

Description

Search for a user

Parameters
Name Type Description
filter FilterOptions
Returns

<static> getUserConfiguration( [ userSysId [, force ] ] ) → {UserConfiguration}

Parameters
Name Type Attributes Default Description
userSysId sys_id <optional>

For a specific user or the current user when undefined

force boolean <optional>
false

Force Loading of user object


<static> hasRole( userSysId, roles, matchAll ) → {boolean}

Description

Validate if a user has roles from the list

Parameters
Name Type Description
userSysId sys_id
roles string | Array.<string>

List of roles to match the user for, either arrya or comma seperated string

matchAll boolean

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
userSysId sys_id
Returns