Admin CRM — Setting URG Use Cases

A. Document controlA. Kiểm soát tài liệu

Doc IDCPG-UC-CPG-CRM_UC_Setting_URG
VersionPhiên bản1.0
StatusTrạng tháiDraft
OwnerCPG BA / Architecture
AudienceĐối tượngBA, QA, Product, Frontend, Backend
ClassificationPhân loạiInternal
Effective dateNgày hiệu lực01/12/2026
Related docs CRM Setting URG TC · CRM Setting URG FSD

B. Version historyB. Lịch sử phiên bản

Version Date Author ChangesThay đổi
1.0 01/12/2026 Khoa Trinh Version 1.0

C. Table of contentsC. Mục lục

D. ContentD. Nội dung

Catalog

UC ID Name Linked TC count Categories
UC-URG-01 View Users list loads successfully 13 Function, NFR, Validation
UC-URG-02 Role Assignment — Assign single role 18 Function, Security, Validation
UC-URG-03 Assign group membership 14 Function, Security, Validation
UC-URG-04 Calculation — Effective permissions = role + group roles union 8 Function, Security

Use cases

UC-URG-01 — View Users list loads successfully

  • Actor: Admin CRM user (role per RBAC)
  • Goal: View Users list loads successfully
  • Primary BR (from TC): 3.1.1

Linked test cases

  • URG-USER-001 — View Users list loads successfully (Function)
  • URG-USER-002 — List — Search by name (Function)
  • URG-USER-003 — List — Search by email (Function)
  • URG-USER-004 — List — Pagination next page (NFR)
  • URG-USER-005 — List — Edit user from Actions icon (Function)
  • URG-USER-006 — List — Deactive user confirm flow (Function)
  • URG-USER-007 — Create Wizard — Open Add User wizard (Function)
  • URG-USER-008 — Create Wizard — Required fields validation - User Information (Validation)
  • URG-USER-011 — Create Wizard — Work email format validation (Validation)
  • URG-USER-012 — Create Wizard — DOB future date blocked (Function)
  • URG-USER-020 — Create — Save User success (Function)
  • URG-USER-021 — Create — Save User duplicate email blocked (Function)
  • URG-USER-022 — Create — Cancel wizard confirms discard (Function)

Representative preconditions

Wizard in progress

Representative main flow

Click Cancel

Expected outcome

Confirm dialog; on confirm no user created

UC-URG-02 — Role Assignment — Assign single role

  • Actor: Admin CRM user (role per RBAC)
  • Goal: Role Assignment — Assign single role
  • Primary BR (from TC): 3.1.1

Linked test cases

  • URG-USER-013 — Role Assignment — Assign single role (Function)
  • URG-USER-014 — Role Assignment — Assign multiple roles (Function)
  • URG-ROLE-001 — View Roles list loads (Function)
  • URG-ROLE-002 — List — Search role by name (Function)
  • URG-ROLE-003 — Create — Open Add Role screen (Function)
  • URG-ROLE-004 — Create — Validate required Role Name (Validation)
  • URG-ROLE-005 — Create role with description (Function)
  • URG-ROLE-006 — Screen Permissions — Grant Read-only on a tab (Security)
  • URG-ROLE-007 — Screen Permissions — Grant Write permission (Security)
  • URG-ROLE-008 — Screen Permissions — Approve permission requires Write (if rule) (Security)
  • URG-ROLE-009 — Screen Permissions — Sensitive permission enables sensitive data fields (Security)
  • URG-ROLE-010 — Screen Permissions — Bulk select module tabs (Function)
  • URG-ROLE-011 — Assign dashboard widgets (Function)
  • URG-ROLE-012 — Select All widgets category (Function)
  • URG-ROLE-013 — Assigned Users — Assign users to role (Function)
  • URG-ROLE-014 — Assigned Groups — Assign groups to role (Function)
  • URG-ROLE-015 — Deactive role not in use (Function)
  • URG-ROLE-016 — Deactive role blocked when assigned (Function)

Representative preconditions

Logged in as Admin

Representative main flow

Open Roles tab

Expected outcome

Roles list loads with counts and actions

UC-URG-03 — Assign group membership

  • Actor: Admin CRM user (role per RBAC)
  • Goal: Assign group membership
  • Primary BR (from TC): 3.1.1

Linked test cases

  • URG-USER-016 — Assign group membership (Function)
  • URG-USER-017 — Group Membership — Remove selected group (Function)
  • URG-GRP-001 — View Groups list loads (Function)
  • URG-GRP-002 — List — Search group by name (Function)
  • URG-GRP-003 — Create — Open Add Group wizard (Function)
  • URG-GRP-004 — Create — Validate required group name (Validation)
  • URG-GRP-005 — Create group successfully (Function)
  • URG-GRP-006 — Role Assignment — Assign roles to group (Function)
  • URG-GRP-007 — Add members to group (Function)
  • URG-GRP-008 — Select all members (Function)
  • URG-GRP-009 — Permission management — Permission review shows inherited permissions (Security)
  • URG-GRP-011 — Edit group updates users count (Function)
  • URG-GRP-012 — Deactive empty group (Validation)
  • URG-GRP-013 — Deactive blocked if group has members (Function)

Representative preconditions

Group with users

Representative main flow

Deactive group

Expected outcome

Blocked

UC-URG-04 — Calculation — Effective permissions = role + group roles union

  • Actor: Admin CRM user (role per RBAC)
  • Goal: Calculation — Effective permissions = role + group roles union
  • Primary BR (from TC): 3.1.1

Linked test cases

  • URG-USER-018 — Permission Review — Effective permissions reflect direct roles (Security)
  • URG-USER-019 — Permission Review — Effective permissions include group-derived roles (Security)
  • URG-PERM-001 — Calculation — Effective permissions = role + group roles union (Function)
  • URG-PERM-002 — Sensitive access not granted unless explicitly enabled (Function)
  • URG-PERM-003 — Sensitive granted shows in review and UI icons (Function)
  • URG-PERM-004 — UI — Permissions tree expand/collapse (Function)
  • URG-PERM-005 — Permissions persist after save & reload (Function)
  • URG-SEC-001 — RBAC — Non-admin cannot access Users/Role/Group pages (Security)

Representative preconditions

Permissions tree exists

Representative main flow

Expand module -> Collapse

Expected outcome

Tree behaves correctly, no selection loss

E. ReferencesE. Tham chiếu