Introduction
Delegation consists of choosing a someone to delegate to and the delegation period :- only during manager’s holidays, this is the default strategy
- permanently, if I never have time to validate the requests of my collaborators
- from date to date, for a one-off delegation not related to my holidays
- Owner: the one who delegates
- Delegatee: the user targeted by the delegation, the one to whom we delegate
- StartsOn: for a date-to-date delegation, the start date (included)
- EndsOn: for a date-to-date delegation, the end date (inclusive)
- OnlyDuringHolidays: Boolean that allows you to indicate that you only want to delegate during your holidays & absences
- IsActive: indicates the state of the delegation, allows if necessary to temporarily deactivate the delegation without losing its information (delegate, strategy)
Retrieve the delegation of the current user
You can retrieve delegation information via the following API.Modify the user’s delegate
Here we assign user (id=34) as the delegate of user (id=123) with the same previous period of delegation.Modify delegation period
In order to swith the period from “during holidays” to a date to date period, you need to deactivate the first strategy and indicate the period.startsOn
and endsOn
to NULL
. You can also set only the startsDate so that the permanent delegation strarts from a specific date.