Staff Manager
The Staff Manager allows you to create a team of administrators with granular permissions. Control who can access different areas of your store's admin panel and delegate responsibilities safely.
Permission Types
Shadow Store includes the following admin permissions:
owner
- Description: Full store owner access with unrestricted privileges
- Access: Everything
- Special: Can only be granted by users listed in the
OWNERSenvironment variable - Cannot be removed: Once set via environment, protected from removal
manageStaff
- Description: Manage staff members and their permissions
- Access: Add/remove staff, grant permissions (except owner)
- Restriction: Cannot grant permissions they don't have themselves
manageProducts
- Description: Manage product catalog
- Access:
- Create, edit, delete products
- Manage releases
- View product analytics
- Manage inventory
manageProductSettings
- Description: Configure store settings
- Access:
- Store configuration
- Tax settings
- Shipping settings
- Product display options
manageDiscounts
- Description: Manage promotional tools
- Access:
- Create discount codes
- Manage sales
- Create referral codes
- View discount analytics
manageForms
- Description: Manage custom forms
- Access:
- Create and edit forms
- View submissions
- Manage form settings
manageInvoices
- Description: Handle billing and invoices
- Access:
- Create and edit invoices
- Process payments
- View invoice history
- Send payment reminders
manageReviews
- Description: Moderate product reviews
- Access:
- Approve/reject reviews
- Handle reported reviews
- Configure review settings
- View review analytics
managePages
- Description: Manage website pages and content
- Access:
- Edit homepage
- Manage custom pages
- Edit blog posts
- Manage partners and team pages
manageSettings
- Description: Configure site-wide settings
- Access:
- Site configuration
- Email settings
- Integration settings
- General preferences
manageTheme
- Description: Customize store appearance
- Access:
- Theme customization
- Branding settings
- Custom CSS
- Logo and images
Adding Staff Members
- Navigate to Admin Panel > Staff
- Click "Add Staff Member"
- Enter the user's email address (they must have an account)
- Select permissions to grant:
- Check the boxes for permissions you want to give
- You can only grant permissions you have yourself
- Click "Add Staff Member"
- The user immediately gains access to granted permissions
The user must have an existing account on your Shadow Store. If they don't, ask them to create one first.
Managing Existing Staff
Viewing Staff Members
The staff list shows:
- User name and email
- Currently assigned permissions
- Date added as staff
- Actions (edit permissions, remove staff)
Editing Permissions
- Navigate to Admin Panel > Staff
- Find the staff member
- Click "Edit Permissions"
- Add or remove permissions:
- Check to add a permission
- Uncheck to remove a permission
- Click "Save Changes"
Permission Validation:
- You cannot grant permissions you don't have
- You cannot modify owner permissions (unless you're also an owner)
- Changes apply immediately
Removing Staff
- Navigate to Admin Panel > Staff
- Find the staff member
- Click "Remove Staff"
- Confirm removal
- All permissions are revoked immediately
Removing a staff member revokes all their admin access. They will no longer be able to access the admin panel.
Owner Management
Environment Owners
Owners defined in the OWNERS environment variable:
- Have permanent owner status
- Cannot be removed via staff manager
- Can grant owner status to others
- Can manage all other owners
Granting Owner Status
Only existing owners can grant owner permissions:
- Navigate to Admin Panel > Staff
- Add or edit a staff member
- Check the
ownerpermission - Save changes
Be very careful when granting owner permissions. Owners have unrestricted access to everything, including the ability to remove other staff members and change critical settings.
Permission Inheritance
Hierarchy Rules
The permission system follows these rules:
- Owner Overrides: Owners can access everything regardless of other permissions
- No Self-Escalation: Staff cannot grant themselves permissions
- No Peer Escalation: Staff cannot grant permissions they don't have
- Owner Protection: Only owners can manage other owners
Example Scenarios
Scenario 1: Product Manager
- Permissions:
manageProducts,manageProductSettings - Can: Create products, edit products, configure store settings
- Cannot: Manage staff, edit theme, moderate reviews
Scenario 2: Content Manager
- Permissions:
managePages,manageTheme - Can: Edit website pages, customize theme
- Cannot: Manage products, access invoices, moderate reviews
Scenario 3: Customer Support
- Permissions:
manageReviews,manageInvoices,manageForms - Can: Moderate reviews, handle invoices, view form submissions
- Cannot: Edit products, manage staff, change settings
Discord Audit Logging
All staff-related actions are logged to Discord (if configured):
Logged Actions:
- Staff member added
- Permissions granted
- Permissions revoked
- Staff member removed
- Failed permission attempts
Log Information:
- Who performed the action
- Target staff member
- Permissions involved
- Timestamp
- Action result
Configure Discord logging at Admin Panel > Integrations > Discord
Security Features
Self-Interaction Prevention
Staff members cannot:
- Grant themselves new permissions
- Remove their own staff status
- Modify their own permissions
This prevents privilege escalation and requires admin oversight for permission changes.
Permission Validation
Every admin action validates:
- User has required permission
- Permission is currently active
- User is not banned
- Session is valid
Audit Trail
All admin actions are tracked:
- Action performed
- User who performed it
- Timestamp
- Result (success/failure)
Access audit logs at Admin Panel > Logs
Common Permission Sets
Store Manager
Permissions: manageProducts, manageProductSettings, manageDiscounts
- Handles day-to-day store operations
- Cannot access sensitive settings or staff management
Content Editor
Permissions: managePages, manageForms
- Manages website content
- Cannot access products or billing
Customer Service
Permissions: manageReviews, manageInvoices, manageForms
- Handles customer interactions
- Cannot modify products or settings
Developer/Designer
Permissions: manageTheme, managePages
- Customizes appearance
- Cannot access business operations
Full Administrator
Permissions: All except owner
- Can manage most aspects
- Cannot add/remove staff or other critical functions
Troubleshooting
Cannot Grant Permission
Possible Reasons:
- You don't have that permission yourself
- You're trying to grant
ownerbut you're not an owner - You're trying to modify your own permissions
- The user is not registered
Solution:
- Contact an owner to grant the permission
- Verify you have the necessary permissions
- Ask another admin to modify your permissions
Staff Member Can't Access Feature
Check:
- Verify they have the correct permission
- Check if permission was recently revoked
- Ensure they're logged in
- Verify session hasn't expired
- Check audit logs for any issues
Accidentally Removed Staff
Recovery:
- Re-add them via Staff Manager
- Re-grant their previous permissions
- Check audit logs to see what permissions they had