--- title: "Enable or Disable a User" url: https://docs.catalyst.zoho.com/en/sdk/java/v1/cloud-scale/authentication/enable-disable-user/ description: "This page describes the method to enable or disable a user in your Java application using Catalyst Authentication with sample code snippets." last_updated: 2025-11-19T15:07:41Z service: Cloud Scale type: general related_links: - name: "Authentication" url: /en/cloud-scale/help/authentication/introduction - name: "Enable or Disable a User in the Console" url: /en/cloud-scale/help/authentication/user-management/users/implementation/#enable-or-disable-a-user --- # Enable or Disable a User Catalyst allows you to [disable or enable a user](https://docs.catalyst.zoho.com/en/cloud-scale/help/authentication/user-management/users/implementation/#enable-or-disable-a-user) at any time. A disabled user will still be listed in the *Users* section in your project, but will not be able to access your application. The SDK snippet below demonstrates enabling and disabling an end-user using the `updateUserStatus()` method. The user is referred by their unique [User ID](https://docs.catalyst.zoho.com/en/cloud-scale/help/authentication/user-management/users/introduction/). You can find the User IDs of all users by navigating to the *Users* > [*User Management*](https://docs.catalyst.zoho.com/en/cloud-scale/help/authentication/user-management/introduction/) section of the Authentication component. ### To Enable a User #### Sample Code Snippet **Package Imports** ```java import com.zc.component.ZCUserDetail; import com.zc.component.users.ZCUser; ``` ```java ZCUser user = ZCUser.getInstance(); user.updateUserStatus(USER_ID, USER_STATUS.ENABLE); ``` ### To Disable a User #### Sample Code Snippet **Package Imports** ```java import com.zc.component.ZCUserDetail; import com.zc.component.users.ZCUser; ``` ```java ZCUser user = ZCUser.getInstance(); user.updateUserStatus(USER_ID, USER_STATUS.DISABLE); ```