Enable or Disable a User

Catalyst allows you to disable or enable a user at any time. A disabled user will be signed up to your application but will not be able to access your application.

The SDK snippet below demonstrates enabling and disabling an end-user using the updateUserStatus(userId, USER_STATUS) method.

The user is referred by their unique User ID. You can find the User IDs of all users by navigating to the Users > User Management section of the Authentication component.

To Enable a User

copy
const userManagement = app.userManagement();
userManagement.updateUserStatus('195000000042777', USER_STATUS.ENABLE)

To Disable a User

copy
const userManagement = app.userManagement();
userManagement.updateUserStatus('195000000042777', USER_STATUS.DISABLE)

Last Updated 2025-09-23 19:47:43 +0530 IST