--- title: "Enable or Disable a User" url: https://docs.catalyst.zoho.com/en/sdk/python/v1/cloud-scale/authentication/enable-disable-user/ description: "This page describes the method to enable or disable a user in your Python application with sample code snippets." last_updated: 2025-11-19T15:07:41Z service: Cloud Scale type: general related_links: - name: "Authentication Help" 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 - name: "SDK Scopes" url: /en/sdk/python/v1/sdk-scopes --- # 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 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 `update_user_status(userId, user_status)` 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 know more about the component instance `authentication_service` used below, please refer to [this section](https://docs.catalyst.zoho.com/en/sdk/python/v1/cloud-scale/authentication/get-component-instance/). ### To Enable a User **Parameters Used**
Parameter Name Data Type Definition
`userId` String A **Mandatory** parameter. Will hold the UserID of the user to be enabled for the application.
`user_status` String A **Mandatory** parameter. Will hold the default value "enable".
```python authentication_service = app.authentication() user_details = authentication_service.update_user_status('6759000000124659', 'enable') # Replace the user id ``` ### To Disable a User **Parameters Used**
Parameter Name Data Type Definition
`userId` `String` A **Mandatory** parameter. Will hold the UserID of the user to be disabled for the application.
`user_status` `String` A **Mandatory** parameter. Will hold the default value "disable"
```python authentication_service = app.authentication() user_details = authentication_service.update_user_status('6759000000124659', 'disable') # Replace the user id ``` > **Info :** Refer to the [SDK Scopes table](https://docs.catalyst.zoho.com/en/sdk/python/v1/sdk-scopes) to determine the required permission level for performing the above operation.