Skip to main content

User entity

Overview

A User represents an authenticated individual interacting with Chargeworx. Users can belong to multiple companies or projects, depending on their role and permissions. Access is secured via IdentityServer authentication and role-based authorization.

Fields

FieldTypeDescription
User IDGUIDUnique identifier used internally for authentication and audit logs.
Full NameTextDisplay name shown in the Admin UI and logs.
EmailTextPrimary contact and login credential.
RoleEnumDefines user privileges (Admin, Manager, Developer, Viewer).
MFA EnabledBooleanIndicates whether multi-factor authentication is enforced.
StatusEnumActive, Pending Invitation, or Disabled.
Last LoginDateTimeMost recent authentication timestamp.

Relationships

  • Many-to-One → Company: Each user is assigned to at least one company.
  • Many-to-Many → Project: Users may collaborate across multiple projects.
  • One-to-Many → Logs/Actions: Tracks user activities and access across Chargeworx services.

Security & authentication

  • Managed via IdentityServer and OAuth2 scopes.
  • MFA supported through AuthController and middleware verification.
  • Role-based access determines visibility of administrative, financial, and operational data.
User accounts are federated and secured with MFA and role-based scopes.