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 userMagament = app.userManagement(); userMagament.updateUserStatus('195000000042777', USER_STATUS.ENABLE)

To Disable a User

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

Last Updated 2023-09-03 01:06:41 +0530 +0530