Departments, to which users must be attached, are used by the different Lucca solutions for different purposes:

  • Define access scopes: for example to restrict the visibility of absences in the Timmi Absences schedule.
  • Filtering data in a report: our different reports generally allow to filter data according to the legal entity, the SSC, but also the department of the user.
  • Build the organization chart in Poplee Core HR. The departments are represented as a hierarchical tree with a parent/child relationship.

NB: You can have up to 9 levels of departments, and up to 99 departments under a single parent department. However, limiting the number of levels to 7 is recommended.

code
string
required
Maximum length: 255
name
string
required
Maximum length: 255
currentUsers
object[]

Only active users of the department

currentUsersCount
integer

Number of active users in the department

Required range: x > 0
head
object
headID
integer

ID of the User who is the head of the department

hierarchy
string

Position of the departement in the hierarchical tree

id
integer
isActive
boolean
level
integer

level of the Department. Deduce from Position.

parentId
string

Position of the parent department in the hierarchical tree

position
integer

Department's general position in the hierarchy

Required range: 10000000000000000000 < x < 100000000000000000000
sortOrder
integer

Order of the current Department among the children of the Parent Department

Required range: x > 1
users
object[]

Users of the department, including inactive users.