User Management Service
Component Detail
Service Layer
medium complexity
backend
0
Dependencies
0
Dependents
5
Entities
0
Integrations
Description
Backend service that orchestrates the full user lifecycle for the organization. Handles invitation issuance, profile updates, role assignment, and reversible deactivation while preserving historical activity records.
user-management-service
Sources & reasoning
Source explicitly lists User CRUD as a feature of admin-user-management and as MVP scope for the Admin Web Portal. Coordinators/peer mentors are provisioned exclusively here, making CRUD the operational entry point for every other admin workflow.
-
docs/source/likeperson.md · line 244-247Admin Web Portal (MVP scope): - Brukeradministrasjon (invitere, deaktivere, rolletildeling)
-
docs/source/likeperson.md · line 374admin-user-management | User Management | User CRUD, Role Assignment, Bulk Actions
-
docs/source/likeperson.md · line 135Coordinators and Peer Mentors are **managed** inside the admin portal (invitations, role assignment, deactivation) but never log in to it
Responsibilities
- Create user records and dispatch onboarding invitation emails
- Update user profile attributes and role assignments
- Deactivate and reactivate users without deleting history
- Enforce organization scoping and admin-only access
- Provide paginated, filterable user queries to the portal
Interfaces
inviteUser(orgId, email, role): User
listUsers(orgId, page, filters): UserListResponse
getUser(userId): UserDetail
updateUser(userId, changes): UserDetail
deactivateUser(userId): void
reactivateUser(userId): void
resendInvitation(userId): void
Related Data Entities (5)
Data entities managed by this component