User Management
Guide to creating and managing user accounts, roles, and privileges in PATH DRC EMR.
Overview
User management in PATH DRC EMR is handled through the OpenMRS Legacy Admin UI. This guide covers:
- Creating user accounts
- Assigning roles and privileges
- Managing provider accounts
- Password management
- Deactivating users
Accessing User Management
- Navigate to the Legacy Admin UI:
http://your-server/openmrs - Log in with an administrator account
- Click Administration in the top menu
- Select Manage Users under the Users section
Creating a New User
Step 1: Create Person Record
Every user needs a person record first:
- Go to Administration → Manage Persons
- Click Add Person
- Fill in required information:
- Given Name: First name
- Family Name: Last name
- Gender: Select appropriate option
- Click Save Person
Step 2: Create User Account
- Go to Administration → Manage Users
- Click Add User
- Fill in the form:
System ID: Unique identifier (auto-generated or custom)
Username: Login name (required)
- Use lowercase letters and numbers
- No spaces or special characters
- Example:
jsmith,nurse01
Person: Link to person record
- Search for the person you created
- Or create a new person inline
Password: Initial password
- Must meet complexity requirements
- User should change on first login
Step 3: Assign Roles
Select appropriate roles for the user:
| Role | Description | Typical Users |
|---|---|---|
| Organizational: Doctor | Clinical privileges for physicians | Doctors |
| Organizational: Nurse | Clinical privileges for nurses | Nurses |
| Organizational: Registration Clerk | Patient registration only | Front desk staff |
| System Developer | Full system access | IT administrators |
| Provider | Basic provider functions | All clinical staff |
Assign only the minimum roles needed. Avoid giving System Developer to non-technical users.
Step 4: Save and Verify
- Click Save User
- Verify the user appears in the user list
- Test login with the new account
Setting Up Provider Accounts
Clinical users need provider accounts to perform clinical functions.
Create Provider
- Go to Administration → Manage Providers
- Click Add Provider
- Fill in:
- Identifier: Provider ID (can be auto-generated)
- Person: Link to the user’s person record
- Provider Role: Select appropriate role
- Click Save Provider
Link User to Provider
This is typically done automatically when creating a provider with a linked person. Verify by:
- Go to Manage Providers
- Find the provider
- Confirm the person link is correct
Common Roles
Organizational: Doctor
Privileges include:
- View patients
- Create/edit encounters
- Order medications
- View clinical data
- Access all clinical forms
Assign to: Physicians, clinical officers
Organizational: Nurse
Privileges include:
- View patients
- Create/edit nursing encounters
- Record vitals
- Administer medications
- View clinical data
Assign to: Nurses, nursing assistants
Organizational: Registration Clerk
Privileges include:
- Register patients
- Edit patient demographics
- Schedule appointments
- View limited patient information
Assign to: Front desk staff, registration clerks
System Developer
Privileges include:
- All system access
- Manage users
- Manage modules
- Access administration
Use sparingly. This role has full system access.
Password Management
Password Requirements
Default OpenMRS password requirements:
- Minimum 8 characters
- At least one uppercase letter
- At least one lowercase letter
- At least one number
Reset User Password
As administrator:
- Go to Administration → Manage Users
- Find and click on the user
- Enter new password in Password field
- Confirm in Confirm Password field
- Click Save User
User Self-Service
Users can change their own password:
- Log in to OpenMRS
- Click user name (top right)
- Select My Profile or Change Password
- Enter current password
- Enter and confirm new password
- Click Save
Deactivating Users
Retire (Recommended)
Retiring keeps the user record but prevents login:
- Go to Administration → Manage Users
- Find and click on the user
- Click Retire User (or check “Retired” checkbox)
- Enter reason for retirement
- Click Save
Benefits:
- Audit trail preserved
- Can be unretired if needed
- Associated data remains linked
Delete (Permanent)
Only delete if the user was created by mistake and has no associated data.
- Go to Administration → Manage Users
- Find and click on the user
- Click Delete User (if available)
- Confirm deletion
Bulk User Management
Export User List
# Export from database
docker compose exec db mysql -u openmrs -popenmrs openmrs -e \
"SELECT u.username, p.given_name, p.family_name, u.retired
FROM users u
JOIN person_name p ON u.person_id = p.person_id
WHERE p.preferred = 1;" > users.csv
View Active Users
docker compose exec db mysql -u openmrs -popenmrs openmrs -e \
"SELECT username FROM users WHERE retired = 0;"
Audit and Security
View Login History
Check who has logged in:
# Check backend logs for login events
docker compose logs backend | grep -i "login\|authentication"
View User Changes
# Recent user modifications
docker compose exec db mysql -u openmrs -popenmrs openmrs -e \
"SELECT u.username, u.date_changed, u.changed_by
FROM users u
ORDER BY u.date_changed DESC
LIMIT 20;"
Security Best Practices
- Regular audits: Review user list monthly
- Prompt deactivation: Remove access immediately when staff leave
- Least privilege: Assign minimum required roles
- Password policy: Enforce regular password changes
- Shared accounts: Never share login credentials
- Session timeouts: Configure appropriate session timeouts
Troubleshooting
User Cannot Log In
Check if account exists:
- Go to Manage Users
- Search for username
- Verify account is not retired
Check if password is correct:
- Reset password as administrator
- Have user try again with new password
Check roles:
- Verify user has at least one role assigned
- Ensure roles include necessary privileges
User Cannot Access Features
Check role assignments:
- Go to user’s profile
- Review assigned roles
- Add missing roles if needed
Check provider account: Clinical functions require a provider account. Verify:
- User has linked provider record
- Provider is not retired
Cannot Create Users
Check your permissions:
- You need System Developer or similar admin role
- Verify your account has “Manage Users” privilege
Quick Reference
Create User Checklist
- Create person record (name, gender)
- Create user account (username, password)
- Assign appropriate roles
- Create provider record (if clinical user)
- Test login
- Inform user of credentials
- User changes password on first login
Common Tasks
Create user: Administration → Manage Users → Add User
Reset password: Administration → Manage Users → [User] → Change password
Assign roles: Administration → Manage Users → [User] → Edit roles
Create provider: Administration → Manage Providers → Add Provider
Retire user: Administration → Manage Users → [User] → Retire
Related
- Initial Setup - First-time user setup
- Troubleshooting - Common issues