Examples: Deactivate and Reactivate Users with SCIM
In Salesforce, you deactivate user objects rather than deleting them. By deactivating a
user object, the user’s active status becomes false. Even
though you can still query the user object, the user can’t log in to Salesforce with the
deactivated account. To allow a user to log in, you can reactivate their account.
Required Editions
Available in: Salesforce Classic and Lightning Experience
Available in: All Editions
To see how to deactivate and reactivate user accounts, view the following examples.
You can also deactivate a user with a DELETE request, as shown here. The result is the same as
deactivating a user with a PATCH request. The user object’s active status is updated to false. In this example, notice that the response code only
includes an HTTP code. This code indicates that the request is successful.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.