User Invitations
The invitation system allows secure onboarding of new administrative users. Only users with theusers:create permission can send invitations.
Creating an Invitation
To invite a new administrator, send a POST request to the/admin/invitations endpoint:
Invitation States
Invitations can be in one of three states:pending- Awaiting acceptanceaccepted- Successfully accepted and account createdexpired- No longer valid (7 days after creation)
Accepting an Invitation
When the invitee clicks the invitation link, they’ll be taken to a page where they can set their password. The acceptance request should be sent to the/admin/invitations/accept endpoint:
Resending Invitations
If an invitation email needs to be resent, use the resend endpoint:Canceling Invitations
To cancel a pending invitation:Important Notes
- Invitations expire after 7 days
- Each email address can only have one pending invitation at a time
- Invitations cannot be created for email addresses that already have an account
- Only users with the
users:createpermission can manage invitations - The invitation token is single-use and becomes invalid after acceptance
- Users are created with email verification automatically completed
- Role assignments cannot be changed during the acceptance process - a new invitation must be sent if a different role is needed

