Skip to main content

User

Simple user object#

Only main fields of user object


AttributeTypeDescriptionNullable
idIntegerIdentifierfalse
loginStringUser login (used to log in to the system)false
levelEnum of (COMPANY,DIVISION,REGION,SHOP)User orgstruct levelfalse
activeBooleanuser activity fieldfalse
langEnum of (ru_RU,en_EN)User language codefalse
businessDirIdIntegerUser business direction idfalse
ldapLoginStringUser ldap logintrue
emailStringUser emailtrue
firstNameStringUser first nametrue
lastNameStringUser last nametrue
positionStringUser positiontrue
timeZoneIdStringUser time zone id format like (Europe/Moscow)true
statusStringUser statustrue
invitedBooleanUser invited fieldtrue
Example:
{
"id": 2950,
"active": true,
"login": "samplemail@example.com",
"firstName": "Jon",
"lastName": "Doe",
"position": "Manager",
"email": "samplemail@example.com",
"level": "REGION",
"businessDirId": 1006,
"lang": "ru_RU",
"status": "ACTIVE",
"invited": false
}
Usages:

Additional user fields#

Additional user object fields


AttributeTypeDescriptionNullable
rolesList of StringSet of user report rolestrue
businessDirObjectUser business direction objecttrue
authTypeEnum of (LOCAL,LDAP)Authorization type (Local - by password, LDAP - via LDAP authorization)false
authoritiesAllList objectsAll user rolesfalse
directorOfShopsList of integersShop id list where user is directorfalse
shopsList of integersList of id shops associated with the userfalse
regionsList of integersList of id regions associated with the userfalse
divisionsList of integersList of id divisions associated with the userfalse
voximplantEnabledBooleanСalls are enabled for the userfalse
Example:
{
"roles": [
"REPORT_TASKS",
"REPORT_CHARTS",
"REPORT_BPP",
"REPORT_CHECKLISTS",
"REPORT_CHECKLISTS_CATEGORIES_QUESTIONS",
"ROLE_SUPERVISOR",
"ROLE_DIRECTOR_CLUSTER",
"REPORT_DYNAMICS_OF_EXECUTIVE_DISCIPLINE",
"REPORT_MBI",
"REPORT_2",
"REPORT_EMPTY_DM",
"CALL_ENABLED",
"REPORT_3"
],
"businessDir": {
"id": 1006,
"name": "Contractors",
"createTask": true,
"system": false,
"geoCheckStart": "accept",
"geoCheckFinish": "accept",
"observeMyShopTask": false
},
"authType": "LOCAL",
"authoritiesAll": [
{
"name": "REPORT_TASKS",
"description": "Tasks"
},
{
"name": "REPORT_CHECKLISTS",
"description": "Checklists"
}
],
"directorOfShops": [],
"shops": [],
"regions": [
85
],
"divisions": [],
"voximplantEnabled": true
}
Usages: