How User Approval Works
When registration mode is set toreview, new user registrations enter a pending state:
User Statuses
Users can have the following statuses:pending: Awaiting admin approval (cannot log in)active: Approved and can access the system
Viewing Pending Users
Retrieve all users awaiting approval:The
authMethod field indicates whether the user registered via local credentials (local) or OpenID Connect (oidc).Approving Users
Approve User
Approve a user by their ID to grant them access.The user’s status changes from
pending to active (server/src/admin/admin.service.ts:280).Approve Endpoint
Users can only be approved if their status is
pending. Attempting to approve an already active user will result in an error.Rejecting Users
Reject Endpoint
Managing All Users
View all users in the system (not just pending):skip(optional): Number of records to skip for pagination (default: 0)take(optional): Number of records to return (default: 50)
- User details and status
- Count of notes and tags for each user
- Pagination metadata
Creating Users Manually
Admins can bypass the registration workflow and create users directly:- Email must be valid and unique
- Password must be at least 8 characters (server/src/admin/dto/create-user.dto.ts:15)
- Name is required and max 100 characters
Manually created users are automatically set to
active status and isAdmin: false. They can log in immediately.Updating User Details
Modify user information or admin privileges:- Email address (must be unique)
- Display name
- Admin status
Resetting User Passwords
Generate a new password for a user:When auto-generating passwords, the system creates a secure 16-character random password (server/src/admin/admin.service.ts:242). Make sure to save this password and share it securely with the user.
Deleting Users
Permanently remove a user from the system:What Gets Deleted
When you delete a user:- The user account is permanently removed
- All notes created by the user are cascade deleted
- All tags created by the user are cascade deleted
Deletion Restrictions
- Cannot delete the last admin user (server/src/admin/admin.service.ts:219)
- This ensures at least one admin always has access to the system
Best Practices
Regular Review
Check pending users regularly to avoid registration delays
Verify Identity
Verify user identity before approval, especially for private instances
Document Decisions
Keep records of why users were approved or rejected
Set Expectations
Inform users about approval process and expected wait times
Next Steps
System Settings
Configure registration modes and authentication settings
Admin Panel
Learn more about admin panel capabilities