# Haven Grazuri Investment Limited - Test Users

## Login URL
**http://127.0.0.1:8000/login/**

---

## User Credentials

### 1. ADMINISTRATOR
- **Username:** `admin`
- **Password:** `Admin@2025`
- **Email:** admin@havengrazuri.co.ke
- **Role:** Admin
- **Branch:** Main Branch - Thika
- **Access Level:** Full system access
- **Permissions:**
  - Manage all users, branches, and settings
  - Approve/reject loans at any level
  - Access to all reports and analytics
  - Can view and manage all branches
  - Full CRUD operations on all modules

---

### 2. TEAM LEADER
- **Username:** `teamleader`
- **Password:** `TeamLeader@2025`
- **Email:** teamleader@havengrazuri.co.ke
- **Name:** John Kamau
- **Role:** Team Leader
- **Branch:** Main Branch - Thika
- **Access Level:** Management level
- **Permissions:**
  - Manage loan officers
  - Approve loans up to certain limits
  - Access to team performance reports
  - Can view Main Branch and Nairobi Branch
  - Monitor team performance

---

### 3. LOAN OFFICER 1 (Main Branch)
- **Username:** `loanofficer1`
- **Password:** `LoanOfficer@2025`
- **Email:** loanofficer1@havengrazuri.co.ke
- **Name:** Mary Wanjiku
- **Role:** Loan Officer
- **Branch:** Main Branch - Thika
- **Access Level:** Operational level
- **Permissions:**
  - Create and manage loan applications
  - View and manage assigned clients
  - Process loan disbursements
  - Limited to Main Branch only
  - Can update client information

---

### 4. LOAN OFFICER 2 (Nairobi Branch)
- **Username:** `loanofficer2`
- **Password:** `LoanOfficer@2025`
- **Email:** loanofficer2@havengrazuri.co.ke
- **Name:** Peter Omondi
- **Role:** Loan Officer
- **Branch:** Nairobi Branch
- **Access Level:** Operational level
- **Permissions:**
  - Create and manage loan applications
  - View and manage assigned clients
  - Process loan disbursements
  - Limited to Nairobi Branch only
  - Can update client information

---

### 5. SECRETARY
- **Username:** `secretary`
- **Password:** `Secretary@2025`
- **Email:** secretary@havengrazuri.co.ke
- **Name:** Grace Akinyi
- **Role:** Secretary
- **Branch:** Main Branch - Thika
- **Access Level:** Support level
- **Permissions:**
  - View reports and documents
  - Manage client information
  - Limited loan management access
  - Can generate reports
  - Document management

---

### 6. AUDITOR
- **Username:** `auditor`
- **Password:** `Auditor@2025`
- **Email:** auditor@havengrazuri.co.ke
- **Name:** David Mwangi
- **Role:** Auditor
- **Branch:** Main Branch - Thika
- **Access Level:** Read-only
- **Permissions:**
  - Read-only access to all reports
  - View audit trails
  - Export data for analysis
  - Cannot modify any records
  - Full visibility for compliance

---

### 7. BORROWER 1 (Main Branch)
- **Username:** `borrower1`
- **Password:** `Borrower@2025`
- **Email:** borrower1@example.com
- **Name:** Jane Njeri
- **Role:** Borrower
- **Branch:** Main Branch - Thika
- **Access Level:** Client level
- **Permissions:**
  - Apply for loans
  - View own loan status and history
  - Make payments
  - View own account information
  - Update personal profile

---

### 8. BORROWER 2 (Nairobi Branch)
- **Username:** `borrower2`
- **Password:** `Borrower@2025`
- **Email:** borrower2@example.com
- **Name:** James Kipchoge
- **Role:** Borrower
- **Branch:** Nairobi Branch
- **Access Level:** Client level
- **Permissions:**
  - Apply for loans
  - View own loan status and history
  - Make payments
  - View own account information
  - Update personal profile

---

## Branch Information

### Main Branch - Thika
- **Code:** MAIN
- **Address:** 2nd Floor, Old Jogoo Kimakia Building, Stadium Road, Thika
- **Phone:** +254112941830
- **Email:** havenin2023@gmail.com
- **Status:** Active (Main Branch)

### Nairobi Branch
- **Code:** NRB
- **Address:** Nairobi CBD
- **Phone:** +254114457516
- **Email:** nairobi@havengrazuri.co.ke
- **Status:** Active

---

## Testing Scenarios

### 1. Admin Testing
- Login as `admin`
- Verify access to all modules
- Test user management
- Test branch management
- Test system settings

### 2. Team Leader Testing
- Login as `teamleader`
- Verify access to both branches
- Test loan approval workflow
- Test team performance reports
- Verify cannot access admin settings

### 3. Loan Officer Testing
- Login as `loanofficer1` or `loanofficer2`
- Test loan application creation
- Test client management
- Verify branch-specific access
- Test loan disbursement

### 4. Secretary Testing
- Login as `secretary`
- Test report generation
- Test document management
- Verify limited loan access
- Test client information updates

### 5. Auditor Testing
- Login as `auditor`
- Verify read-only access
- Test audit trail viewing
- Test report exports
- Verify cannot modify records

### 6. Borrower Testing
- Login as `borrower1` or `borrower2`
- Test loan application
- Test payment submission
- Verify can only see own data
- Test profile updates

---

## Security Notes

1. **Password Policy:** All passwords follow the format `Role@2025`
2. **Change Passwords:** In production, force password change on first login
3. **Two-Factor Authentication:** Consider enabling for admin and team leader roles
4. **Session Timeout:** Default is 2 weeks, adjust as needed
5. **Branch Isolation:** Loan officers can only access their assigned branch
6. **Audit Trail:** All actions are logged for compliance

---

## System Compatibility

✅ All users are compatible with the Haven Grazuri Investment Limited system
✅ Branch assignments are properly configured
✅ Role-based permissions are enforced
✅ Database schema is aligned with user models
✅ Foreign key relationships are properly established

---

## Support

For any issues or questions:
- **Email:** havenin2023@gmail.com
- **Phone:** +254112941830
- **Address:** 2nd Floor, Old Jogoo Kimakia Building, Stadium Road, Thika

---

**Created:** May 8, 2026
**System:** Haven Grazuri Investment Limited
**Version:** 1.0
