Overview
Admin users manage the store via the Admin Panel. They have roles that control what they can access.Roles
Admin users can have different roles that control their permissions:| Role | Description |
|---|---|
admin | Full access to all Admin Panel features |
You can create custom roles with specific permissions. See the Customize Permissions guide for details.
Creating Admin Users
Use the Spree CLI to create admin users:admin role on the default store.
Inviting Admin Users
You can invite new admins through the Admin Panel or programmatically. Via Admin Panel:- Navigate to Settings → Users
- Click Invite User
- Enter the email address and select a role
- Click Send Invitation
Invitation Details
| Attribute | Description |
|---|---|
email | Invitee’s email address |
token | Secure token for the invitation link |
status | pending or accepted |
expires_at | Expiration date (default: 2 weeks) |
resource | The store being granted access to |
role | The role to assign upon acceptance |
Invitation Events
The invitation system publishes events you can subscribe to:| Event | Description |
|---|---|
invitation.created | Invitation was created (triggers email) |
invitation.accepted | Invitation was accepted and role assigned |
invitation.resent | Invitation was resent to the invitee |
Permissions
Spree uses CanCanCan for authorization. Permissions apply to both customers (Store API access) and admins (Admin Panel access). See the Customize Permissions guide for details on creating custom roles and permission sets.Related Documentation
- Customers — Customer accounts and authentication
- Stores — Multi-store setup
- Permissions — Roles and authorization
- Events — Subscribe to invitation events

