This class provides access to the information about the current user and his prerequisites. The SimpleUser API class usage is getting rid of using slower SimpleRecord queries for user information retrieving,
s_user.accessToken
Returns access token of the current user.
Return:
Type
Description
String
Access token of the current user.
s_user.accessToken
s_user.firstName
Returns the first name of the current user.
Return:
Type
Description
String
First name of the current user.
s_user.firstName
s_user.getFullName()
Returns the first and last name of the current user (see the values of the fields "First name" and "Last Name").
Returns a SimpleRecord object containing user data, such as first name, last name, sys_id value, and so on, formatted as JSON.
Type
Description
SimpleRecord object
Object containing user information
s_user.user
s_user.userName
Returns the current user's username (for example, helpdesk.agent). Take a note that it does not return user's name, whether it be first name, or last name. or full name (for example, John, or Doe, or John Doe).