Ctrl K
ring2all.com

Role Profiles Module Documentation

Table of Contents

  1. Module Overview (Technical)
  2. Module Overview (Commercial/Business)
  3. Module Overview (End User/Administrator)
  4. Configuration Sections
  5. Settings Reference
  6. Common Scenarios & Examples
  7. Limitations & Important Notes
  8. Troubleshooting Tips
  9. Glossary

---

1. Module Overview (Technical)

What Are Role Profiles?

Role Profiles is a permission management module that defines access levels for admin panel users. Each role profile contains a permissions matrix specifying access (Full Control, Read Only, No Access) for every module in the system.

Architecture

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Role Profiles Architecture                        │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Role Profiles Definition                                       │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        Role Profile: Operator                            │   │
│  │                                                          │   │
│  │  Permissions Matrix:                                     │   │
│  │  ├─ Dashboard → Full Control                            │   │
│  │  ├─ Extensions → Full Control                           │   │
│  │  ├─ Ring Groups → Read Only                             │   │
│  │  ├─ Queues → Read Only                                  │   │
│  │  ├─ System Settings → No Access                         │   │
│  │  ├─ Users → No Access                                   │   │
│  │  └─ ...                                                 │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ Assigned to users                                      │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        Users                                             │   │
│  │                                                          │   │
│  │  User: jsmith → Role: Operator                          │   │
│  │  User: admin → Role: Administrator                      │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ Applied at runtime                                     │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        Access Control                                    │   │
│  │                                                          │   │
│  │  Menu visibility based on permissions                    │   │
│  │  API access based on permissions                         │   │
│  │  UI actions based on permissions                         │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Key Tables

TablePurpose
public.role_profilesRole definitions
public.role_permissionsPermission matrix

Key Files

FileDescription
modules/roleProfiles/Frontend module
---

2. Module Overview (Commercial/Business)

Business Value

Role Profiles provides granular access control:

Without Role ProfilesWith Role Profiles
All or nothingGranular control
Single admin typeMultiple roles
No customizationCustom permissions
Security riskLeast privilege

Use Cases

  1. Operator Role
- Day-to-day operations

- Limited system access

  1. Support Role
- Read-only diagnostics

- No configuration changes

  1. Department Admin
- Full access to subset

- Restricted system settings

  1. Auditor Role
- Read-only everything

- Compliance review

Feature Highlights

FeatureBenefit
Permissions MatrixPer-module control
Three LevelsFull, Read, None
Custom RolesCreate any role
User AssignmentLink profiles to users
InheritanceVisual inherited markers
DuplicateClone and modify
---

3. Module Overview (End User/Administrator)

What Can You Do?

  • Create custom role profiles
  • Set permissions per module
  • Choose Full Control, Read Only, or No Access
  • Assign profiles to users
  • Duplicate existing profiles
  • Search and filter permissions

Role Profiles Interface

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Role Profiles                                      │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  [+ Create Profile]                                             │
│                                                                 │
│  [🔍 Search role profiles...]                                   │
│                                                                 │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ Profile Name   │ Description          │ Users │ Permissions│ │
│  ├────────────────┼──────────────────────┼───────┼────────────┤ │
│  │ Administrator  │ Full system access   │ 2     │ 45 items   │ │
│  │ Operator       │ Day-to-day ops       │ 5     │ 30 items   │ │
│  │ Support        │ Read-only access     │ 3     │ 20 items   │ │
│  │ Billing        │ CDR and reports      │ 2     │ 8 items    │ │
│  └───────────────────────────────────────────────────────────┘  │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Create/Edit Role Profile

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Edit Role Profile                                  │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  ▼ Basic Information                                            │
│                                                                 │
│  Profile Name: [Operator                    ]                  │
│    Name displayed in role selectors                             │
│                                                                 │
│  Description: [Day-to-day operations        ]                  │
│    Optional description to clarify this role profile           │
│                                                                 │
│  ──────────────────────────────────────────────────────────────│
│                                                                 │
│  ▼ Permissions Matrix                                           │
│                                                                 │
│  Select the permission level for each module.                   │
│  🔵 Blue dots indicate inherited permissions.                   │
│                                                                 │
│  [🔍 Search modules...]                                         │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │ Module / Feature        │ Full │ Read │ None │             ││
│  ├─────────────────────────┼──────┼──────┼──────┼─────────────┤│
│  │ ▼ Dashboard             │  ●   │  ○   │  ○   │             ││
│  │ ▼ Telephony             │      │      │      │ 5 groups    ││
│  │   ├─ Extensions         │  ●   │  ○   │  ○   │             ││
│  │   ├─ Ring Groups        │  ○   │  ●   │  ○   │             ││
│  │   ├─ Queues             │  ○   │  ●   │  ○   │             ││
│  │   └─ Conferences        │  ●   │  ○   │  ○   │             ││
│  │ ▼ Routing               │      │      │      │ 3 groups    ││
│  │   ├─ Inbound Routes     │  ●   │  ○   │  ○   │             ││
│  │   ├─ Outbound Routes    │  ○   │  ○   │  ●   │             ││
│  │   └─ IVR                │  ●   │  ○   │  ○   │             ││
│  │ ▼ System                │      │      │      │ 4 groups    ││
│  │   ├─ System Settings    │  ○   │  ○   │  ●   │             ││
│  │   ├─ Users              │  ○   │  ○   │  ●   │             ││
│  │   └─ Role Profiles      │  ○   │  ○   │  ●   │             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
│  [Save] [Cancel]                                                │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Quick Tips

TIP
Duplicate: Clone existing profile as starting point.
TIP
Search Modules: Find specific modules quickly.
WARNING
Users Assigned: Cannot delete profile with assigned users.

---

4. Configuration Sections

Basic Information

FieldDescription
Profile NameDisplay name
DescriptionPurpose explanation

Permissions Matrix

ColumnDescription
ModuleSystem module/feature
Full ControlCreate, read, update, delete
Read OnlyView only, no changes
No AccessHidden from user
---

5. Settings Reference

Permission Levels

LevelIconCapabilities
Full ControlCreate, Read, Update, Delete
Read OnlyRead only
No AccessHidden

Module Groups

GroupModules
DashboardMain dashboard, widgets
TelephonyExtensions, Ring Groups, Queues
RoutingInbound, Outbound, IVR
GatewaysTrunks, Carriers
ReportsCDR, Statistics
SystemSettings, Users, Profiles

Default Profiles

ProfileDescription
AdministratorFull access to everything
OperatorDay-to-day operations
UserBasic read access
---

6. Common Scenarios & Examples

Scenario 1: Create Operator Role

  1. Click "Create Profile"
  2. Name = "Operator"
  3. Description = "Day-to-day operations"
  4. Set Extensions = Full Control
  5. Set Ring Groups = Full Control
  6. Set System Settings = No Access
  7. Set Users = No Access
  8. Save

Scenario 2: Read-Only Auditor

  1. Click "Create Profile"
  2. Name = "Auditor"
  3. Set all modules = Read Only
  4. Save

Scenario 3: Duplicate and Modify

  1. Find existing profile
  2. Click Duplicate
  3. Rename to new name
  4. Adjust permissions
  5. Save

Scenario 4: Department-Specific Role

  1. Create new profile
  2. Name = "Sales Manager"
  3. Full Control: Extensions, Queues, CDR
  4. Read Only: Ring Groups
  5. No Access: System, Gateways
  6. Save

---

7. Limitations & Important Notes

Technical Notes

NOTE
User Assignment: Delete users or reassign before deleting profile.
NOTE
Menu Visibility: No Access hides menu items.
WARNING
System Profiles: Some profiles may be protected.

Best Practices

  1. Least Privilege: Grant minimum required access
  2. Document Roles: Describe each profile purpose
  3. Regular Review: Audit permissions periodically
  4. Use Inheritance: Build on existing profiles
  5. Test Roles: Verify access before deployment

Permission Precedence

ScenarioResult
Full Control selectedAll operations allowed
Read Only selectedView only
No Access selectedModule hidden
---

8. Troubleshooting Tips

Common Issues

SymptomPossible CauseSolution
Can't delete profileUsers assignedReassign users first
Menu not visibleNo Access setGrant Read or Full
Can't editRead Only accessNeed Full Control
Search not workingWrong module nameCheck spelling

Check Profile Assignments

Sql
SELECT 
  u.username,
  r.name AS role_profile
FROM public.users u
JOIN public.role_profiles r ON r.id = u.role_profile_id
ORDER BY r.name;

Verify Permissions

  1. Assign role to test user
  2. Login as test user
  3. Verify menu visibility
  4. Test create/edit operations

---

9. Glossary

TermDefinition
Role ProfilePermission set
Permissions MatrixModule access grid
Full ControlComplete access
Read OnlyView only access
No AccessHidden/blocked
InheritancePermission from parent
---

Lua Script Status ℹ️

Admin Module

ComponentStatus
Role Profilesℹ️ Admin panel module - no Lua handler required
Role Profiles is an administration module. Permissions control access to the web admin panel. No Lua handlers are used - access control is enforced by the backend API and frontend routing.

---

Documentation last updated: January 2026
AI Assistant

👋 Hello! I'm your Ring2All documentation assistant. I can help you find information about configuring and using the Ring2All PBX platform.

How can I help you today?