You can make a user active or inactive with the changeUserStatus method.
Permissions to run the request: Account Owner, Administrators, Department Administrators.
Department Administrators can add users only to the department they manage and its daughter departments.
|credentials (required)||credentials||Read the description of the Credentials object.|
|userId (required)||string||ID of the user whose profile you want to update.|
Specify user status:
1 - active
3 - inactive
After the request has been completed, the system returns an object with the following properties:
|success||bool||True if the user's profile has been updated.|
|Unknown user||A user with the specified ID was not found.|
|Permission denied||A user does not have enough permissions to handle the operation. For example, an organization admin can't add users to another organization.|
|User status must be 1 or 3, <status> given||An unacceptable status.|