Feature Request: API Endpoint for Enabling/Disabling User Accounts #777

Closed
opened 2026-02-04 21:18:49 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @rustysbro2 on GitHub (Aug 5, 2025).

Is this a feature for the backend or frontend?

Backend

What would you like?

I'd like an API endpoint to enable or disable user accounts.

Example:

PATCH /api/users/:id/disable
PATCH /api/users/:id/enable

This would add an is_disabled boolean field to users, preventing disabled users from logging in.

Why is this needed?

It allows easy integration with external account management workflows (such as compliance or automation tools), without needing direct database edits or manual UI actions.

Other information

No response

Originally created by @rustysbro2 on GitHub (Aug 5, 2025). ### Is this a feature for the backend or frontend? Backend ### What would you like? I'd like an API endpoint to enable or disable user accounts. Example: ``` PATCH /api/users/:id/disable PATCH /api/users/:id/enable ``` This would add an `is_disabled` boolean field to users, preventing disabled users from logging in. ### Why is this needed? It allows easy integration with external account management workflows (such as compliance or automation tools), without needing direct database edits or manual UI actions. ### Other information _No response_
Author
Owner

@meltyshev commented on GitHub (Aug 6, 2025):

Hey! This is already possible in v2. To disable a user (we call it "deactivate"), you can make an API call from an account with an Admin role:

PATCH /api/users/:id/
{
  "isDeactivated": true
}

Once deactivated, the user will be automatically logged out and won't be able to log in again until isDeactivated is set back to false.

@meltyshev commented on GitHub (Aug 6, 2025): Hey! This is already possible in v2. To disable a user (we call it "deactivate"), you can make an API call from an account with an Admin role: ``` PATCH /api/users/:id/ { "isDeactivated": true } ``` Once deactivated, the user will be automatically logged out and won't be able to log in again until `isDeactivated` is set back to `false`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#777