Skip to main content

Account Management

Enable/disable accounts and manage account status.

Enable/Disable Account

GET /api/users/{username}/enabled

Check if user account is enabled.

Authentication: Required

Permissions: user:edit

Response:

{
"username": "john.doe",
"enabled": true
}

PUT /api/users/{username}/enabled

Enable a user account.

Authentication: Required

Permissions: user:edit

Request Body:

{
"enabled": true
}

Response:

Returns updated user object.

Use Case:

Reactivate a disabled account.


DELETE /api/users/{username}/enabled

Disable a user account.

Authentication: Required

Permissions: user:edit

Response:

204 No Content on success.

Behavior:

Sets enabled: false, preventing login without deleting the account.

Use Case:

Temporarily suspend a user's access.


Account Locking

See Authentication for unlock operations.

Related endpoints:

  • PUT /api/users/\{username\}/unlock - Unlock account
  • PUT /api/users/\{username\} - Update lock status

Account Deletion

See Core CRUD for account deletion.

Endpoint:

  • DELETE /api/users/\{username\} - Permanently delete account

Warning:

Account deletion is permanent and removes all user data.