This operation changes the user status to
This functionality can be used only in CloudCode (Java, JS or Codeless), the reason for this restriction is that a malicious use of this API can easily compromise application's security. As a result, this API must be used from a controlled environment. For information about the API select either Android/Java or JS documentation.
||objectId/unique identifier of a user account to be disabled.|
This Codeless block is only available in CloudCode due to the security reasons. If this operation is exposed to users, then your application can be compromised.
This operation does not return a value.
Consider the following record in the
Users data table:
Note that the
userStatus column contains the current user status which is
The example below disables the user
"email@example.com" associated with the objectId:
After the Codeless logic runs, the user status successfully changes to