Departments
The department resource
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.
name
string
requiredMaximum length:
255
code
string
requiredMaximum length:
255
id
integer
hierarchy
string
Position of the departement in the hierarchical tree
parentId
string
Position of the parent department in the hierarchical tree
isActive
boolean
position
integer
Department's general position in the hierarchy
Required range:
10000000000000000000 < x < 100000000000000000000
level
integer
level of the Department. Deduce from Position.
sortOrder
integer
Order of the current Department among the children of the Parent Department
Required range:
x > 1
headID
integer
ID of the User who is the head of the department
head
object
users
object[]
Users of the department, including inactive users.
currentUsers
object[]
Only active users of the department
currentUsersCount
integer
Number of active users in the department
Required range:
x > 0
Was this page helpful?