Employees Directory
The user resource
The v3 User is the representation of an employee in the Legacy API.
A v3 user is comprised of:
The v3 user existed before the introduction of work-contracts, as a result, contractual information (establishment/legal-entity, contract start and end dates, etc…) now comes from the “applicable” work-contract.
- a hard-coded set of attributes (e.g
firstName,mail,managerId, etc…) calledcoreData; - a dynamic set of extensions depending on installed applications called
applicationData. Some of them are nested in aapplicationDataJSON object in read (GET) requests, and some are root properties. - a dynamic set of custom extensions depending on the Employee Directory configuration called
extendedData. Their names are prefixed with"e_". For read requests, these are always nested in theextendedDataattribute.
About Extended Data(s)
Read more about extended-dataAbout User Axis Values
User axis values can be used for matching users and axis-sections. Common use-case is giving each user a cost center, which areaxis-sections in a “Cost Center” axis. Read more about axes and axis-sections.
In order to attach an axis-section of a given axis to a user, you may use dynamic properties whose key must match:
{ "userAxisValues_{{axisId}}": {"id": {{axisSectionId}} }.
For example, if user with ID 416 belongs to the cost center which corresponds to the axis-section with ID 35 in the axis with ID 2:
About Application Data
Application-data are custom extensions to the user/employees defined by installed applications on your Lucca account. About Lucca Expenses Profile Expenses management profile in Lucca Expenses. Assigning a Lucca Expenses profile to a user is handled through a property whose name is dynamic, as it must conform to the pattern"profile_cleemy_{{appInstanceId}} where appInstanceId is the ID of the corresponding Cleemy Expense appplication instance (there can be more than one Cleemy Expenses application installed on any given account).
Identifier of the "primary" role this user/employee has.
There are two types of roles: "primary" and "secondary". A user/employee must have a single primary role, that dictates their overall level of access, as well as zero or several complementary "secondary" roles.
Required range:
x >= 1Embedded representation of the department. Read more about departments.
Dictionary of extended data, which are custom extensions to the base user/employee model. Keys are the custom extended-data definition identifier (e.g. e_Emergency-Contact). The value is polymorphic, and its type depends on the extended-data definition.
Read more about extended data.