Role Definitions
Role Definitions are templates that specify:- The role name (e.g., “Employee”, “Student”, “Member”, “Director”)
- The handle (machine-readable)
- Any associated entitlements or modifiers
Role Instances
When a profile is linked to an organisation, a Role Instance is created. The instance references:- The Profile
- The Organisation
- The Role Definition
- Optional start and end dates (for time-limited roles)
- Status (active or inactive)
role_definition_id, is_active, or expires_at without removing and re-adding the profile.
How roles are used in incentive logic
Roles can be used as conditions in reactions and benefit eligibility checks. For example:- “Issue a 30% benefit to any profile with an ‘Employee’ role in the ‘Acme Corp’ organisation”
- “Only allow claims of the ‘Supplier Trade’ benefit if the profile has an active ‘Supplier Staff’ role”