Permissions
Who may do what: the token that opens the API, and the person on whose behalf a change is made.
On this page
Two things decide whether a request is accepted. The token says that your system may call the API of your account: scope hr.access, see Authentication. The person named in actorId says on whose behalf a change is made, and the product checks that this person may make it. Your system is responsible for knowing who is signed in on its side and for sending that person.
Who may do what
| Change | Who may | Never | Refusal |
|---|---|---|---|
approveLeave, rejectLeave | The approver of the request, or the HR lead | The person who made the request | not_approver, own_request |
cancelLeave | The person, the approver or the HR lead | Anyone else | not_allowed |
completeStep, reopenStep | The owner of the step, or the HR lead | Anyone else | not_step_owner |
issueDocument | The HR lead | Anyone else | not_allowed |
The approver of a request is the manager of the person at the first day of the leave. Someone at the top of the company has no manager, and the HR lead is their approver.
What the API shows
- The gross salary is in the employments of a person (
grossSalary), not in the person. A client that does not need it does not read that resource. - A person is never shown with a personal numeric code. A document carries the name, the job, the department, the first day and the contract, and a salary document also the gross monthly salary.