What are Unions?
Unions are organizational groups that contain union members who share a common identity, location, or are managed by the same credit officer. Every union is assigned to a specific credit officer who manages its members and loan operations.Unions must be created before adding members. Each union is tied to one credit officer.
Union Data Model
Based on the Prisma schema, the Union model contains:Key Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | String | Yes | Unique identifier (auto-generated) |
name | String | Yes | Union name (must be unique) |
location | String | No | Geographic location or area |
address | String | No | Physical address details |
creditOfficerId | String | Yes | Assigned credit officer ID |
deletedAt | DateTime | No | Soft delete timestamp |
Viewing All Unions
Access the unions list from the sidebar:List Features
Search
Type union name in the search box to filter results
Filter
Filter by credit officer or status (Active/Inactive)
Sort
Click column headers to sort by name, officer, or date
Export
Download union list as CSV or Excel
Role-Based Access
Administrator
Administrator
Can view and manage all unions in the system
Supervisor
Supervisor
Can view unions assigned to credit officers under their supervision
Credit Officer
Credit Officer
Can only view and manage their own assigned unions
Creating a New Union
Fill Required Fields
Required:
- Union Name - Enter a unique, descriptive name
- Credit Officer - Select the officer who will manage this union
- Location - Geographic area or region
- Address - Physical address or meeting place
Field Guidelines
Union Name Best Practices:
- Use clear, descriptive names (e.g., “Market Women Group”, “Potters Association Zone A”)
- Avoid duplicate names
- Include location if helpful (e.g., “Lagos Traders Union”)
API Endpoint
Viewing Union Details
Click any union in the list to view:Basic Information
- Union name
- Location and address
- Assigned credit officer
- Creation date
Member Statistics
- Total members count
- Active members
- Recent additions
Loan Portfolio
- Total loans issued
- Active loans
- Outstanding balance
Performance
- Collection rate
- Overdue loans
- Repayment trends
Editing a Union
Update Fields
Modify the information as needed:
- Change name
- Update location/address
- Reassign credit officer (see below)
Reassigning Credit Officers
When reassigning a union to a different officer, all members automatically move with the union
Reassignment Process
What Happens During Reassignment?
- Union’s creditOfficerId is updated to the new officer
- Assignment history is recorded in
UnionAssignmentHistory - All union members remain in the union
- All loans stay connected to the union
- New officer gains access to all union data
Assignment History Tracking
View Assignment History
View Assignment History
Each union details page shows a history log of all officer assignments with dates and reasons
Deleting a Union
Soft Delete Process
Unions are soft deleted (marked with
deletedAt timestamp) rather than permanently removed, preserving historical dataAlternative: Deactivate
Instead of deleting:- Edit the union
- Mark as inactive
- This hides it from active lists while preserving data
Union-Related Operations
Adding Members to a Union
See Members documentation for details on creating members within a union.Creating Loans for Union Members
When creating a loan:- Select the union first
- Then select a member from that union
- The loan is automatically associated with both
Search and Filters
Search Bar
Filter by Credit Officer
Filter by Status
- Active - Shows all active unions
- Inactive - Shows deactivated unions
- All - Shows both active and inactive
Export Options
CSV Export
Download as comma-separated valuesBest for Excel or Google Sheets
Excel Export
Download as .xlsx fileIncludes formatting and headers
Copy to Clipboard
Copy data for pasting elsewhereQuick data sharing
Export Includes
- Union name
- Location and address
- Assigned credit officer name
- Member count
- Loan statistics
- Creation date
Best Practices
Naming Conventions
- Use consistent naming patterns
- Include location if managing multiple areas
- Avoid abbreviations that aren’t clear
- Example: “Ikeja Market Women Union” not “IMW”
Officer Assignment
- Assign unions to officers familiar with the area
- Balance workload across officers
- Consider geographic proximity
- Document reassignment reasons
Data Management
- Keep location and address updated
- Review inactive unions periodically
- Archive old unions instead of deleting
- Maintain assignment history
Performance Monitoring
- Track union-level metrics
- Compare performance across unions
- Identify high-performing groups
- Address struggling unions proactively
Troubleshooting
Cannot create union
Cannot create union
Possible causes:
- Union name already exists
- Credit officer not selected
- Insufficient permissions (not Admin/Supervisor)
Cannot delete union
Cannot delete union
Reason: Union has active members or loansSolution:
- Reassign members to other unions
- Close or cancel all loans
- Or mark union as inactive instead
Cannot see all unions
Cannot see all unions
Reason: Role-based access restrictionsExplanation:
- Credit Officers only see their assigned unions
- Supervisors see unions of their team
- Only Admins see all unions
Reassignment not working
Reassignment not working
Check:
- You have Admin or Supervisor role
- New officer exists and is active
- You provided required information
API Reference
Endpoints
Summary
Unions provide:- ✅ Organizational structure for members
- ✅ Credit officer assignment and management
- ✅ Loan portfolio grouping
- ✅ Performance tracking by group
- ✅ Assignment history and audit trail
- ✅ Role-based access control
