DelegationReference
Fields Reference
Reference for delegation fields and constraints
Fields Reference
This page documents all fields in a delegation record and their constraints.
Delegation Fields
| Field | Description | Required |
|---|---|---|
| Delegator | The user who grants access to their travelers | Yes |
| Delegate | The user who receives access | Yes |
| Company | The company context for this delegation | Yes |
| Scopes | Permission scopes granted | Yes (at least one) |
| Status | Whether the delegation is active or inactive | Yes |
| Created | When the delegation was created | Automatic |
Uniqueness
Each delegation must be unique based on the combination of:
- Delegator (who grants access)
- Delegate (who receives access)
- Company
You cannot create duplicate delegations for the same user pair in the same company. If you need to change the scopes, edit the existing delegation instead.
Default Values
| Field | Default |
|---|---|
| Scopes | View Travelers, Create Bookings, View Bookings |
| Status | Active |
Validation Rules
| Rule | Error Message |
|---|---|
| Delegator and delegate are the same user | "Cannot delegate to yourself" |
| Delegation already exists for this pair | "Delegation already exists" |
| User not active in the company | "User not found or not active in company" |
| No scopes selected | "At least one scope is required" |
Related Topics
- Scopes Reference - Permission scope details
- Creating Delegations - How to create delegations