Skip to main content

Roles & Permissions

Roles & Permissions Overview Guide

Comprehensive overview of the roles and permissions system in the Xmarket platform.

At a Glance

What This Section Does

Control who can access which features on the platform. Assign roles to team members, create custom roles with specific permissions, and manage access across all back-office functions.

Who Should Use This

  1. System Administrators: Set up new team members and manage all access
  2. HR Managers: Assign roles based on job responsibilities
  3. Department Heads: Review team member permissions and request changes

Most Common Tasks

  1. Assign a Role to a Team Member: Give someone access
  2. Create a Custom Role: Set up specific permissions
  3. View All Roles: See available roles
  4. Manage Permissions: Control feature access

Before You Start

Make sure you have these permissions:

  1. back_office_staff: Required to manage team member roles
  2. platform_users: Required to view user accounts
  3. Super Admin role: Required to create or modify roles and permissions

Overview

SectionDescription
OverviewCentral system for controlling access to platform features through role-based permissions.
Main ComponentsRoles Management, List Roles, List Permissions

View & Search Features

FeaturePermission RequiredWhitelist Required
Viewing Rolesroles_listNone
Viewing Permissionspermissions_listNone
Viewing Role-Permission Matrixroles_manageNone (view-only for non-superadmin)

Create & Manage Features

FeaturePermission RequiredWhitelist Required
Assigning Permissions to Rolesroles_manageSuperadmin role
Creating/Editing Rolesroles_manageSuperadmin role
Editing Permission Detailsroles_manageSuperadmin role

Role Comparison - Who Can Do What

This table shows what each role can access. Use it to decide which role to assign to your team members.

Feature / TaskSuper Admin (22)Admin (17)Operator (7)Market Manager (5)Treasury Ops (2)Dashboard (1)
Markets
Create Markets
Approve Markets
Resolve Markets
Edit Markets
View Markets
esport
sport
Presales
Approve Presales
Manage Revenue Share
Users & Roles
Manage Roles
Assign Roles to Members
Manage Back-office Staff
View Platform Users
Finance & Treasury
View Token Balances
Execute Token Operations
Manage Fees
System Settings
Configure Platform
Manage Categories & Tags
Manage Referrals
Reports & Monitoring
View Dashboard

Quick Guide:

  1. Super Admin (22 permissions): Full access to everything. Use carefully - only assign to trusted system administrators.
  2. Admin (17 permissions): Manages daily operations including users and settings. Cannot create or modify roles.
  3. Operator (7 permissions): Handles day-to-day market tasks like creation, approval, and resolution.
  4. Market Manager (5 permissions): Supervises all market-related activities with focused access.
  5. Treasury Ops (2 permissions): Specialized role for finance team managing company funds and token operations.
  6. Dashboard Monitoring (1 permission): View-only access for analysts and reporting staff.

Understanding Roles & Permissions

What Are Roles?

Roles are named collections of permissions that define what a user or group of users can do within the system. Each role has a specific set of permissions assigned to it.

What Are Permissions?

Permissions are specific authorizations to perform an action or access a feature within the admin panel or platform. Each permission controls access to a particular functionality.

How Roles and Permissions Work Together

  1. Permissions are created and defined in the system (e.g., admin_market, roles_manage)
  2. Roles are assigned one or more permissions (e.g., "Super Admin" role has 22 permissions)
  3. Users are assigned roles, which grant them all permissions associated with that role
  4. Access Control checks user roles and permissions to determine what features they can access

Accessing Roles & Permissions Management

Access the Roles & Permissions system through the main navigation:

  1. Navigate to Roles & Permissions section in the left sidebar
  2. Select from the following options:
    1. Manage: Assign permissions to roles (superadmin only)
    2. List Roles: View and manage all roles
    3. List Permissions: View and manage all permissions

Key Features

1. Roles Management (Manage)

Purpose: Assign and unassign permissions to roles using an interactive permission matrix.

Key Features:

  • Permission matrix showing all permissions and roles
  • Checkbox-based permission assignment
  • Real-time updates
  • Superadmin-only access for modifications

Access Requirements:

  • View-only: Any admin user
  • Full management: Superadmin role only

For detailed instructions, see: Roles Management Guide

2. List Roles

Purpose: View and manage all roles in the system, including role details and permissions.

Key Features:

  • Complete list of all roles
  • Role details and metadata
  • Permission assignments per role
  • Search and filter functionality

Access Requirements:

  • roles_list permission required

For detailed instructions, see: List Roles Management Guide

3. List Permissions

Purpose: View and manage all available permissions in the system, including permission details and metadata.

Key Features:

  • Complete list of all permissions
  • Permission keys, names, and descriptions
  • Search functionality
  • Edit permission details (superadmin only)

Access Requirements:

  • permissions_list permission required
  • roles_manage permission required for editing (super admin only)

For detailed instructions, see: List Permissions Management Guide

Permission Categories

Permissions are organized into functional categories:

CategoryDescriptionExample Permissions
MarketsPermissions for market managementadmin_market, creator_market, market_categories, market_tags, market_multiple_outcome
PresalePermissions for presale operationspresale_pending_review, presale_revenue_share
UsersPermissions for user managementback_office_staff, platform_users
SystemPermissions for system configurationsystem_configuration, system_qt_and_fees, system_variable_config_banner
Roles & PermissionsPermissions for access controlroles_manage, roles_list, permissions_list
Automated MarketsPermissions for automated market generationesport, sport
AnalyticsPermissions for dashboard and analyticsdashboard_analytics
GovernancePermissions for governance functionsgovernance_manage

Common Workflows

Assigning a Role to a Team Member

  1. Navigate to Users > Back-office Staff
  2. Find the team member
  3. Click Edit or Assign Role
  4. Select the appropriate role from the dropdown
  5. Save changes

Viewing What a Role Can Do

  1. Navigate to Roles & Permissions > List Roles
  2. Find the role you want to review
  3. View the permissions assigned to that role
  4. Review the role comparison table above for quick reference

Understanding Permission Structure

  1. Navigate to Roles & Permissions > List Permissions
  2. Browse all available permissions
  3. Use search to find specific permissions
  4. Review permission descriptions to understand what each permission controls

Assigning Permissions to a Role (Superadmin Only)

  1. Navigate to Roles & Permissions > Manage
  2. Locate the permission you want to assign
  3. Find the role column
  4. Click the checkbox to assign the permission
  5. Changes save automatically

Best Practices

Role Assignment

  1. Principle of Least Privilege: Assign users only the minimum permissions necessary for their job
  2. Regular Reviews: Periodically review role assignments to ensure they remain appropriate
  3. Documentation: Document why specific roles are assigned to team members
  4. Separation of Duties: Separate critical functions across different roles when possible

Permission Management

  1. Superadmin Restriction: Only superadmins should manage permissions and roles
  2. Clear Naming: Use descriptive permission names and descriptions
  3. Regular Audits: Review permissions regularly to ensure they remain relevant
  4. Test Changes: Test permission changes with actual user accounts before full deployment

Security Considerations

  1. Limit Superadmin Access: Only assign superadmin role to highly trusted administrators
  2. Monitor Access: Regularly audit who has access to sensitive permissions
  3. Document Changes: Keep records of permission and role changes
  4. Review Regularly: Conduct quarterly reviews of all role assignments

Troubleshooting

Common Issues

IssuePossible CauseSolution
Cannot access Roles ManagementMissing roles_manage permissionVerify you have the required permission
Cannot assign permissionsNot a superadminOnly superadmins can assign permissions
Cannot see permission matrixView-only accessNormal behavior for non-superadmin users
Role not appearing in dropdownRole may be inactive or deletedCheck List Roles page for role status
Permission changes not savingNetwork issue or insufficient permissionsCheck connection and verify superadmin access

Getting Help

If you need assistance with roles and permissions:

  1. Check Permissions: Verify you have the required permissions for the action
  2. Review Role Comparison: Use the role comparison table above to understand access levels
  3. Contact Superadmin: Request assistance from a superadmin for permission management
  4. Review Documentation: Check the detailed guides for each component (Manage, List Roles, List Permissions)

Product Glossary

TermDescription
RoleA named collection of permissions that defines what a user can do within the system
PermissionA specific authorization to perform an action or access a feature
SuperadminHighest privilege role with full system access including role and permission management
Permission KeyUnique system identifier for a permission (e.g., admin_market, roles_manage)
Permission MatrixInteractive table showing all permissions and their assignments to roles
Role AssignmentThe process of associating a role with a user account
Permission AssignmentThe process of associating permissions with a role
Access ControlSystem that checks user roles and permissions to determine feature access
RBACRole-Based Access Control - security model using roles and permissions
View-Only AccessAbility to view but not modify roles and permissions (non-superadmin users)