tools
JDito Funktionen zur Verwaltung der Datenmodelle, etc.
Methods
addUserToken
addUserToken(
pTokenId,pUserTitle?,pReferenceUserId?,pValidFrom?,pValidTo?,pValidOnce?,pGroupId?):string
Create a new user token.
A token is required to specify the login user. The reference User ID provides additional identification of a user. For example, a login user can be defined for a survey, which thus consumes only one license. Nevertheless you can identify who has actually logged in. Newly created tokens are always marked as valid.
Parameters
string | number | booleanThe be ID of the token (UID).
string | number | booleanThe login name of the user to whom the token is associated (for example, 'Admin'). Important: This user will run the login.
string | number | booleanThis ID (reference User ID) identifies a user.
numberFrom this date on, the token is valid (given in milliseconds from 1970)
numberAt this date, the token is no longer valid (specified in milliseconds from 1970)
booleanIndicates whether the token should be invalidated at first login
string | number | booleanAdditional information for evaluation purposes
Returns
stringThe ID of the token that was created (UID).
Throws
May throw an exception.
Example
tools.addUserToken(null, 'Admin', 'Tim Admin', 1488927600000, 1488927600000, true, 'Group 1');
clearPermissionCache
clearPermissionCache():
void
Clears the permission cache.
Returns
voidThrows
May throw an exception.
Example
tools.clearPermissionCache();
clearRoleCache
clearRoleCache():
void
Clears the role cache.
Returns
voidThrows
May throw an exception.
Example
tools.clearRoleCache();
clearUserCache
clearUserCache():
void
Clears the user cache.
Returns
voidThrows
May throw an exception.
Example
tools.clearUserCache();
containsAnyRole
containsAnyRole(
pRoles,pRoleNames):boolean
Returns whether the first array contains one of the roles specified in the second array.
Parameters
anyThe array with the roles you passed.
string[]The roles you are searching for.
Returns
boolean"true" if the array contains one of the roles.
Throws
May throw an exception.
Example
import("lib_util");
var users = tools.getStoredUsers();
var roles = tools.getAllRoles(["INTERNAL", "PROJECT"]);
for (var i = 0; i < users.length; i++)
{
var userRoles = tools.getRoles(users[i][1]);
for (var z = 0; z < userRoles.length; z++)
{
if (tools.containsAnyRole(roles, userRoles))
question.showMessage("User has the required role" );
else
question.showMessage(" User has none of the required roles");
}
}
containsRole
containsRole(
pRoles,pRoleName):boolean
Returns whether the role array you passed contains a particular role or not.
Parameters
anyThe array with the roles you passed.
string | number | booleanThe name of the role you are searching for.
Returns
boolean'true' if the array contains the role.
Throws
May throw an exception.
Example
import("lib_util")
// Determine roles that do not exist in the user models
var users = tools.getStoredUsers();
var roles = tools.getAllRoles(["INTERNAL", "PROJECT"]);
for (var i = 0; i < users.length; i++)
{
var wrongRoles = [];
var rightRoles = [];
var userRoles = tools.getRoles(users[i][1]);
for (var z = 0; z < userRoles.length; z++)
{
if (!tools.containsRole(roles, userRoles[z]))
question.showMessage(" User role does not exist: " + userRoles[z] )
else
question.showMessage(" User role exists: " + userRoles[z] )
}
}
createRole
createRole(
pName,pTitle,pDescription,pIsAssignable,pAssignedChildren):boolean
Create a role
Parameters
string | number | booleanmandatory
string | number | booleanmandatory
string | number | booleanbooleanstring[]Returns
booleanThrows
May throw an exception.
currentUserHasAnyRole
currentUserHasAnyRole(
pRoleNames):boolean
Returns whether the logged in user has one of the roles passed.
Parameters
string[]The roles.
Returns
boolean'true' if the user has one of the given roles.
Throws
May throw an exception.
Example
var roleNames = ["PROJECT_Fachadministrator", "PROJECT_Service"];
var hasAnyRole = tools.currentUserHasAnyRole(roleNames);
currentUserHasRole
currentUserHasRole(
pRoleName):boolean
Returns whether the logged on user has a specific role.
Parameters
string | number | booleanThe role to check whether the user has it.
Returns
boolean'true' if the user has the role.
Throws
May throw an exception.
Example
var hasRole = tools.currentUserHasRole("PROJECT_MANAGEMENT");
deleteRole
deleteRole(
pName):boolean
Deletes a role
Parameters
string | number | booleanthe name of the role to delete
Returns
booleantrue, if this action was successful
Throws
May throw an exception.
deleteUser
deleteUser(
pTitle):void
Deletes a user.
Parameters
string | number | booleanThe login name of the user you want to delete.
Returns
voidThrows
May throw an exception.
Example
tools.deleteUser("Admin");
deleteUserToken
deleteUserToken(
pUid):void
Deletes the user token with the specified UID.
Parameters
string | number | booleanThe ID of the token
Returns
voidThrows
May throw an exception.
Example
tools.deleteUserToken('fb585dd3-9c8d-460e-a667-57a8e6b763a2');
existUsers
existUsers(
pTitle):boolean
Returns whether the specified user(s) exist(s).
Parameters
anyLogin name(s) of the user(s). As string for one user, otherwise as array.
Returns
boolean'true' if the user(s) exists.
Throws
May throw an exception.
Example
var users = tools.existUsers(new Array("Viri Walden", "Manai Weber"));
generateNewUserName
generateNewUserName():
string
Generates a new generic user name. The user object itself is NOT created. This method has no parameters.
Returns
stringa new generic username, consisting in a prefix, followed by a UID
Throws
May throw an exception.
Example
var myUserName = tools.generateNewUserName();
// _____USER_75223eec-4703-4bbd-9554-402351a50d56 logging.log(myUserName);
getAllGroups
getAllGroups():
Map<any,any>
Returns all groups that exist in the ADITO system.
Returns
Map<any, any>The groups, as an array.
Throws
May throw an exception.
Example
var groups = tools.getAllGroups();
for (var i=0; i<groups.length; i++)
{
question.showMessage(groups[i][0] + "\n" + groups[i][1]);
}
getAllRoles
getAllRoles(
pRoleTypes,pIncludeUnassignable?):Map<any,any>
Returns all available roles.
Parameters
string[]The role types to be returned ("INTERNAL", "PROJECT", "CUSTOM").
boolean'true' to include roles, which cannot be assigned to a user directly
Returns
Map<any, any>The available roles in the following format:
Key: ID/RoleName
Value[0]: title
Value[1]: type
Value[2]: description
Value[3]: ID/RoleName
Value[4]: isAssignable
Throws
May throw an exception.
Example
var x = tools.getAllRoles(new Array("INTERNAL"));
for(var i in x)
{
question.showMessage("i: " + i + "\nx[i]:\n" + x[i].join("\n"));
}
getAllUserTokens
getAllUserTokens(
onlyValid):Map<any,any>[]
Loads all user tokens.
Parameters
booleanFlag whether only valid tokens should be loaded.
Returns
Map<any, any>[]All tokens
Throws
May throw an exception.
Example
var tokens = tools.getAllUserTokens(true);
getCurrentUser
getCurrentUser():
Map<any,any>
Returns data on the current user, as an object structure.
Returns
Map<any, any>The user data, as a map.
Throws
May throw an exception.
Example
var user = tools.getCurrentUser();
var setting = user[tools.PARAMS][tools.SELECTION_IGNORECASE];
question.showMessage(setting);
getPermissionFilter
getPermissionFilter(
pPermissionAction,pEntity,pField?,pUser?):string
Returns a filter that restricts results to values that the user has permissions for.
Parameters
string | number | booleanthe kind of permission, that should be checked, look at PERMISSION_* constants
string | number | booleanthe name of the entity, that should be checked. For example: "Person_entity"
string | number | booleanthe field, that should be checked for permissions, null if you're checking entity level permissions. For example: "FIRSTNAME"
string | number | booleanthe login of the user, that should be checked for permissions. For example: "admin". If this is null then the current User will be used
Returns
stringthe filter as a stringified JSON-Object. (You can use JSON.parse() if you want to use it as an object)
For example: "{"type":"group","operator":"AND","childs":[{"type":"row","name":"#EXTENSION.IsEmployee_filter.IsEmployee_filter#BOOLEAN","operator":"EQUAL","value":"Ja","key":"true","contenttype":"BOOLEAN"}]}"
Throws
May throw an exception.
Example
var permissionFilter = tools.getPermissionFilter(tools.PERMISSION_UPDATE, "Person_entity");
result.string(permissionFilter);
getRoles
getRoles(
pUserLogin):string[]
Returns the user's roles.
Parameters
string | number | booleanThe login name of the user.
Returns
string[]The roles, as a string array.
Throws
May throw an exception.
Example
var roles = tools.getRoles(vars.getString("$sys.user"));
getStoredUsers
getStoredUsers():
string[][]
Returns all users that exist in the system database.
Returns
string[][]The entries are returned as an array with the following values:
Entry[0] = Name,
Entry[1] = Title.
Throws
May throw an exception.
getUser
getUser(
pTitle,pProfile?):Map<any,any>
Returns data on a user, as an object structure.
Parameters
string | number | booleanThe login name of the user.
string | number | booleanReturns
Map<any, any>The user data, as a map, with the attributes of the default profile (see tools.PROFILE_DEFAULT)
Throws
May throw an exception.
Example
var user = tools.getUser("Admin");
var setting = user[tools.PARAMS][tools.SELECTION_IGNORECASE];
question.showMessage(setting);
getUserByAttribute
getUserByAttribute(
pAttribute,pValue,pProfile?):Map<any,any>
Returns data on a single user, as an object structure, based on the specified attribute.
Parameters
string | number | booleanThe attribute you want to search the user list for.
string | number | booleanThe value of the attribute to be searched for.
string | number | booleanThe profile to load, see tools.PROFILE_*
Returns
Map<any, any>The user data, as a map, 'null' if no user was found.
Throws
May throw an exception.
Example
var user = tools.getUserByAttribute(tools.TITLE, ["Admin"], tools.PROFILE_FULL);
question.showMessage(users);
getUsers
getUsers(
pTitle,pProfile?):Map<any,any>[]
Returns data on multiple users, as an object structure, based on the specified attributes.
Parameters
anyLogin names of the users, as an array.
string | number | booleanThe profile to load, see tools.PROFILE_*
Returns
Map<any, any>[]The users as a map.
Throws
May throw an exception.
Example
var users = db.array(db.COLUMN, "select login from employee where login not like 'Multi%'");
activeUsers = tools.getUsers(users, tools.PROFILE_FULL);
getUsersByAttribute
getUsersByAttribute(
pAttribute,pValues,pProfile?):Map<any,any>[]
Returns data on multiple users, as an object structure, based on the specified attribute.
Parameters
string | number | booleanThe attribute you want to search the user list for.
anyThe value of the attribute to be searched for.
string | number | booleanThe profile to load, see tools.PROFILE_*
Returns
Map<any, any>[]The users as a map. The order is independent of the values passed.
Throws
May throw an exception.
Example
var users = tools.getUsersByAttribute(tools.ISACTIVE, ["true"], tools.PROFILE_FULL);
getUsersWithAnyRole
getUsersWithAnyRole(
pRoleNames):string[]
Returns the titles of the users having one of the specified roles.
Parameters
string[]The names of the roles for which you want to find users.
Returns
string[]The titles (login names) of all users.
Throws
May throw an exception.
Example
var users = tools.getUsersWithAnyRole(["PROJECT_Administration", "PROJECT_FieldService"]);
getUsersWithRole
getUsersWithRole(
pRoleName):string[]
Returns the titles of the users having the specified role.
Parameters
string | number | booleanThe name of the roles for which you want to find users.
Returns
string[]The titles (login names) of all users.
Throws
May throw an exception.
Example
var users = tools.getUsersWithRole("PROJECT_Administration");
getUserToken
getUserToken(
pTokenId):Map<any,any>
Loads the user token with the specified ID (pTokenId).
Parameters
string | number | booleanthe ID of the token (UID)
Returns
Map<any, any>The token.
Throws
May throw an exception.
Example
var token = tools.getUserToken('fb585dd3-9c8d-460e-a667-57a8e6b763a2');
hasAnyRole
hasAnyRole(
pUserLogin,pRoleNames):boolean
Returns whether a user has one of the roles you passed.
Parameters
string | number | booleanThe login name of the user.
string[]The roles you are searching for.
Returns
boolean'true' if the user has one of the roles.
Throws
May throw an exception.
Example
if(tools.hasRole(vars.getString("$sys.user"), ["PROJECT_Administration", "PROJECT_FIELDSERVICE"]));
hasPermission
hasPermission(
pPermissionAction,pEntity,pField,pUser?,pObjectRowIds?):boolean
Returns true, if a user has a specific permission.
Parameters
string | number | booleanthe kind of permission, that should be checked, look at PERMISSION_* constants
string | number | booleanthe name of the entity, that should be checked. For example: "Person_entity"
string | number | booleanthe field, that should be checked for permissions, null if you're checking entity level permissions. For example: "FIRSTNAME"
string | number | booleanthe login of the user, that should be checked for permissions. For example: "admin". If this is null then the current User will be used
string[]the object ids of the records, which should be checked for permissions (for conditional permissions)
Returns
booleantrue if the permission is granted
Throws
May throw an exception.
Example
if (tools.hasPermission(tools.PERMISSION_VIEW, "Person_entity"))
{
// The current user can view the Person-Entity
}
hasRole
hasRole(
pUserLogin,pRoleName):boolean
Returns whether a user has a particular role.
Parameters
string | number | booleanThe login name of the user.
string | number | booleanThe role you are searching for.
Returns
boolean'true' if the user has one of the roles.
Throws
May throw an exception.
Example
if(tools.hasRole(vars.getString("$sys.user"), "PROJECT_Administration"))
question.showMessage("You are an admin!");
insertUser
insertUser(
pUser,pName?):string
Creates a new user.
Parameters
anyThe user, as an object.
string | number | booleanThe name of the new user. The name has to start with "____USER". No value generates a new name.
Returns
stringThe name (not the title) of the user.
Throws
May throw an exception.
Example
var user = new Array();
user[tools.TITLE] = "newUser";
user[tools.PASSWORD] = "test1234";
user[tools.PARAMS] = new Array();
user[tools.PARAMS][tools.FIRSTNAME] = "new";
user[tools.PARAMS][tools.LASTNAME] = "User";
tools.insertUser(user);
refreshCurrentUser
refreshCurrentUser():
void
Saves the changes to the current user and reloads them from the database.
Returns
voidThrows
May throw an exception.
Example
tools.refreshCurrentUser();
resolveUser
resolveUser(
pLogin):string
Returns the internal names of a user based on the login name you passed.
Parameters
string | number | booleanThe login name of the user, as a string.
Returns
stringThe internal user name, as a string. 'null' if no user exists.
Throws
May throw an exception.
Example
var users = tools.resolveUser("Admin");
resolveUsers
resolveUsers(
pLogin):string[]
Returns the internal names of a user based on the login names you passed.
Parameters
anyThe login names of the users, as an array.
Returns
string[]The internal user names, as a string array, array element is 'null' if user with title does not exist.
Throws
May throw an exception.
Example
var users = tools.resolveUsers(new Array("Admin", "Administrator"));
updateCurrentUser
updateCurrentUser(
pAttributes):void
Updates the current user data.
Parameters
anyThe attributes to be updated.
Returns
voidThrows
May throw an exception.
Example
var update = new Array();
update["title"] = "Admin";
update["description"] = "My description";
tools.updateCurrentUser(update);
updateRole
updateRole(
pName,pTitle,pDescription,pIsAssignable,pAssignedChildren):boolean
Updates a role. 'null'-Parameters are not updated.
Parameters
string | number | booleanmandatory
string | number | booleanstring | number | booleanbooleanstring[]Returns
booleanThrows
May throw an exception.
updateUser
updateUser(
pUser):void
Updates a user.
Parameters
anyThe user, as an object.
Returns
voidThrows
May throw an exception.
Example
var user = tools.getUser("Admin");
user[tools.PARAMS][tools.FIRSTNAME] = "newFirstname";
user[tools.PARAMS][tools.LASTNAME] = "newLastname";
tools.updateUser(user);
updateUserToken
updateUserToken(
pUid,pLoginUser,pReferenceUserId,pValidFrom,pValidTo,pValidOnce,pValid,pGroupId):void
Update the user token with the specified ID in the database.
Parameters
string | number | booleanThe desired ID of the token (UID)
string | number | booleanThe login name of the user to whom the token is associated (for example, admin). Important: This user will run the login.
string | number | booleanThis ID (reference User ID) identifies a user.
numberFrom this point on, the token is valid (given in milliseconds from 1970)
numberAt this point, the token is no longer valid (specified in milliseconds from 1970)
booleanIndicates whether the token should be invalidated at first login
booleanIndicates whether the token is valid
string | number | booleanAdditional information for evaluation purposes
Returns
voidThrows
May throw an exception.
Example
tools.updateUserToken('fb585dd3-9c8d-460e-a667-57a8e6b763a2', 'admin', 'Tim Admin', 1488927600000, 1488927600000, true, 'Group 1');
validatePasswordPolicies
validatePasswordPolicies(
pPassword,pUserLogin):string[]
Checks whether the password passed complies to the configured policies.
Parameters
string | number | booleanThe password to be checked.
string | number | booleanThe user's login name. Empty string for new user.
Returns
string[]An array of messages indicating which policies have not been met. Empty, if everything is fine.
Throws
May throw an exception.
Example
let policyMessages = tools.validatePasswordPolicies(vars.get("$local.value"), vars.get("$sys.user"));
let messages = [];
if(policyMessages.length > 0) {
for(let msg in policyMessages) {
messages.push(policyMessages[msg]);
}
result.string(messages.join("\n", messages));
}
verifyPassword
verifyPassword(
pUserLogin,pPassword,pDisableSleep?):boolean
Checks whether the password you passed is correct.
This overloaded method variant allows you to disable the security-related sleeping, which sometimes may lead to unwanted delays. IMPORTANT: Only use it if you can be sure, that the user is already authenticated/logged-in.
Parameters
string | number | booleanThe user whose password you want to check.
string | number | booleanThe password to be checked.
booleanAn optional Boolean to disable sleeping.
Returns
boolean'true' if the password you passed is correct. 'false' if the password you passed is wrong.
Throws
May throw an exception.
Properties
Example
var password = question.askQuestion("Password?", question.QUESTION_EDIT, "");
var checked = tools.verifyPassword("Admin", password, true);
question.showMessage("The result is: " + checked + " / " + typeof(checked));
BLOCKEDTIMESTAMP
stringCAL_HOURPARTITION
stringCAL_LASTVIEWMODE
stringCAL_MAINTIME_END
stringCAL_MAINTIME_START
stringCAL_TASKSELECTION
stringCAL_USER_SORTING
stringCAL_VIEWMODE
stringCALDAV_LOGIN
stringCALDAV_PASSWORD
stringCALDAV_PATH
stringCALENDAR_ALIAS
stringCALENDAR_USERFAVORITES
stringCALENDARID
stringCALENDARSYNC_ENABLED
stringCALENDARSYNC_LASTDATE
stringCOMPONENT_MODE
stringCONTACTID
stringConstant for reading and setting user properties.
This is the contact-id of the user.
This corresponds to the description property in the user area of the System Editor.
This property is set and retrieved via user[tools.CONTACTID].
COUNTRY
stringDESCRIPTION
stringConstant for reading and setting user properties.
This is the description of the user.
This corresponds to the description property in the user area of the System Editor.
This property is set and retrieved via user[tools.DESCRIPTION].
DOMINOREST_DATABASE
stringDOMINOREST_INTERNETADDRESS
stringDOMINOREST_LOGIN
stringDOMINOREST_PASSWORD
stringDOMINOREST_USERNAME
stringEMAIL
stringEXCHANGE_DOMAIN
stringEXCHANGE_EMAIL
stringEXCHANGE_FOLDERCALENDAR
stringEXCHANGE_FOLDERTASK
stringEXCHANGE_LOGIN
stringEXCHANGE_PASSWORD
stringEXCHANGE_USERTITLE
stringEXTERNAL_USER_ID
stringFIRSTNAME
stringFRAME_SEARCHFAVORITES
stringFRAME_STOREDSEARCHES
stringGROUPS
stringConstant for reading and setting user properties.
These are the groups of the user, to which he can only access reading.
This property is set and retrieved via user[tools.PARAMS][tools.GROUPS].
HASUNREADWHATSNEW
stringICON
stringConstant for reading and setting user properties.
This is the icon.
This corresponds to the icon property in the user area of the System Editor.
This property is set and retrieved via user[tools.PARAMS][tools.icon].
IS_ENABLED
stringCompatibility-Cases. Use ISACTIVE
ISACTIVE
stringISBLOCKED
stringITEM_USER_FAVORITES
stringKERBEROS_LOGIN
stringLANGUAGE
stringLAST_LOGIN
stringLAST_LOGOUT
stringLASTMODIFIED
stringLASTNAME
stringLDAP_LOGIN
stringLOCALE
stringLOGIN_LIMIT
stringMAIL_CHECKER_INTERVAL
stringMAIL_USERSERVERENABLED
stringMAILSERVER_ALIAS
stringMAILSERVER_INBOX
stringMAILSERVER_OUTBOX
stringMAILSERVER_PASSWORD
stringMAILSERVER_TRANSPORT_PASSWORD
stringMAILSERVER_TRANSPORT_USER
stringMAILSERVER_USER
stringMODELS
stringConstant for reading and setting user properties.
These are the data models of the user in the groups.
This property is set and retrieved via user[tools.PARAMS][tools.MODELS].
MYROLE
stringConstant for reading and setting user properties.
This is your own role, which is the same as the name.
This property is set and retrieved via user[tools.PARAMS][tools.MYROLE].
NAME
stringNONWORKDAYS
stringOAUTH2_LOGIN
stringOPEN_NEW_TAB
stringPARAMS
stringThese are the user's parameters.
The parameters can be used to get or set the user's properties, e.g. user[tools.PARAMS][tools.LASTNAME].
PASSWORD
stringConstant for reading and setting user properties.
This is the password if it is specified using the user properties.
This corresponds to the password property in the user area of the System Editor.
This property is set and retrieved via user[tools.PASSWORD].
PASSWORD_CHANGED
stringPASSWORD_HASH
stringConstant for reading and setting user properties.
This is the hash value of the password.
This property is set and retrieved via user[tools.PARAMS][tools.PASSWORD_HASH].
PASSWORD_HISTORY
stringPERMISSION_CREATE
stringConstant for permissions: CREATE is granted
PERMISSION_DELETE
stringConstant for permissions: DELETE is granted
PERMISSION_READ
stringConstant for permissions: READ is granted
PERMISSION_UPDATE
stringConstant for permissions: UPDATE is granted
PERMISSION_VIEW
stringConstant for permissions: VIEW is granted
PHONE_ADDRESS
stringPREFERRED_THEME
stringPROFILE
stringPROFILE_DEFAULT
stringConstant for the profile that can be specified when users are fetched through tools.getUser(), tools.getUsers(), tools.getUserByAttribute(), and tools.getUsersByAttribute().
The default does not include the following features of the user:
tools.ICON, tools.DESCRIPTION, tools.FRAME_SEARCHFAVORITES, tools.FRAME_STOREDSEARCHES, tools.ITEM_USER_FAVORITES, tools.CALENDAR_USERFAVORITES, and tools.PASSWORD_HISTORY.
NOTE: If just the user title is required, use the constant PROFILE_TITLE instead to improve the performance.
PROFILE_FULL
stringConstant for the profile that can be specified when users are fetched through tools.getUser(), tools.getUsers(), tools.getUserByAttribute(), and tools.getUsersByAttribute().
The full profile loads the entire profile with all the properties.
CAUTION! Loading the full user profile is significantly slower compared to PROFILE_DEFAULT and PROFILE_TITLE. Avoid using this profile for a large number of users as this can lead to severe performance issues.
PROFILE_TITLE
stringConstant for the profile that can be specified when users are fetched through tools.getUser(), tools.getUsers(), tools.getUserByAttribute(), and tools.getUsersByAttribute().
The title profile only loads the user's title.
ROLE_CUSTOM
stringConstant for reading and setting user properties. This is the role type 'CUSTOM'.
This property is set and retrieved via user[tools.PARAMS][tools.ROLE_CUSTOM].
ROLE_INTERNAL
stringConstant for reading and setting user properties.
This is the role type 'INTERNAL'.
This property is set and retrieved via user[tools.PARAMS][tools.ROLE_INTERNAL].
ROLE_PROJECT
stringConstant for reading and setting user properties. This is the role type 'PROJECT'.
This property is set and retrieved via user[tools.PARAMS][tools.ROLE_PROJECT].
ROLENAMES
stringROLENAMES_ASSIGNED
stringConstant for reading and setting user properties.
This are the names of roles of the user which are directly assigned. Transient Roles are omitted.
This property is set and retrieved via user[tools.PARAMS][tools.ROLESNAMES_ASSIGNED].
ROLES
stringConstant for reading and setting user properties.
These are the roles of the user.
This property is set and retrieved via user[tools.PARAMS][tools.ROLES].
ROLES_ASSIGNED
stringConstant for reading and setting user properties.
This are the roles of the user which are directly assigned. Transient Roles are omitted.
This property is set and retrieved via user[tools.PARAMS][tools.ROLES_ASSIGNABLE].
ROLES_NOSELF
stringConstant for reading and setting user properties.
This is the role of the user without its own role (read only).
This property is set and retrieved via user[tools.PARAMS][tools.ROLE_NOSELF].
SELECTION_BOTH
stringConstant for the type of placeholder (tools.SELECTION_PLACEHOLDER).
In this case, placeholders are set before and behind the search term.
SELECTION_IGNORECASE
stringSELECTION_NEITHER
stringConstant for the type of placeholder (tools.SELECTION_PLACEHOLDER).
In this case, placeholders are ignored.
SELECTION_NULL
stringConstant for the type of placeholder (tools.SELECTION_PLACEHOLDER).
In this case, placeholders are ignored.
SELECTION_PLACEHOLDER
stringSELECTION_POSTFIX
stringConstant for the type of placeholder (tools.SELECTION_PLACEHOLDER).
In this case, placeholders are set behind the search term.
SELECTION_PREFIX
stringConstant for the type of placeholder (tools.SELECTION_PLACEHOLDER).
In this case, placeholders are set before the search term.
SELECTION_USE_LEADING_WILDCARD
stringSHOW_FLOATING_ACTION_BUTTON
stringSHOW_WEEKEND
stringSSPI_LOGIN
stringTABLEPAGEFLIP
stringTASKS_ALIAS
stringTEAMS_AZUREID
stringTEAMS_AZUREUPN
stringTIMEZONE
stringTITLE
stringConstant for reading and setting user properties.
This is the login of the user.
This corresponds to the title property in the user area of the System Editor.
This property is set and retrieved via user[tools.title].
USER_TOKEN_GROUP_ID
stringConstant for reading and setting user properties. This is the Group ID of the user token.
USER_TOKEN_LOGINUSER
stringConstant for reading and setting user properties. This is the Login User Title of the user token.
USER_TOKEN_REFUSER
stringConstant for reading and setting user properties. This is additional user information of the user token.
USER_TOKEN_UID
stringConstant for reading and setting user properties. This is the UID of the user token.
USER_TOKEN_VALID
stringConstant for reading and setting user properties. Specifies whether the user token is valid.
USER_TOKEN_VALIDFROM
stringConstant for reading and setting user properties. This is the date from which the user token is valid.
USER_TOKEN_VALIDONCE
stringConstant for reading and setting user properties. Specifies whether the user token is valid once.
USER_TOKEN_VALIDTO
stringConstant for reading and setting user properties. This is the date until the user token is valid.