# Deactivate user in Salesforce

> A Slack request deactivates a departing employee’s Salesforce user. Access to customer data ends and the license is freed.

Source: https://stepwork.com/marketplace/deactivate-user-in-salesforce

Automatically deactivate a departing employee’s Salesforce user from a Slack request with Stepwork. Find the user in Setup, deactivate them, and free the license.

**Apps:** Salesforce
**Starts with:** Slack request
**Use case:** Employee offboarding
**Best for:** Salesforce Administrator, IT Administrator
**Applications used:** Salesforce, Slack
**Business outcome:** Risk reduction

## They’ve left. They can still open every account.

When a rep or manager leaves, their Salesforce user stays active until an admin gets to it in Setup. Until then they can sign in and open the accounts, contacts, and pipeline they worked on.

Every day it waits is a day of customer data within reach of someone who no longer works there, and a paid license nobody is using. Salesforce does not let you delete users, so deactivating is the step that matters.

## Customer data closes when the request lands

Stepwork deactivates the Salesforce user. They can no longer sign in, their records stay in place, and the license is free for the next hire. The run records who asked and when, as one step of employee offboarding.

- Sign-in to Salesforce ends.
- Records the user owned stay where they are.
- If Salesforce blocks the change, the run stops and records why.

## From Slack request to deactivated user

A teammate posts the request in Slack. Stepwork deactivates the user in Salesforce Setup, in the same order every time.

1. **Request it in Slack** (Slack): A teammate posts the departing employee’s work email in the offboarding channel. That message starts the flow, and Stepwork records who asked and when.
2. **Find the user in Setup** (Salesforce): Stepwork signs in to Salesforce with a credential read from 1Password at run time and opens Users in Setup. If no user has that email, or more than one does, the run stops instead of guessing.
3. **Deactivate the user** (Salesforce): Stepwork edits the user and clears Active, the same change a Salesforce admin makes. The license is released.
4. **Confirm and reply in Slack** (Salesforce): Stepwork checks that the user now shows as inactive, then posts the result back in Slack with a timestamp.

## Deactivated in Setup, the same way each time

Stepwork runs the path you recorded in Salesforce Setup. When the Setup page changes, AI vision recognizes the field and the run continues. When Salesforce refuses the change, the run stops and says why.

## Questions

**Q: How do I deactivate a Salesforce user automatically?**
Post the work email in Slack. Stepwork finds the user in Setup, clears Active, and confirms the change.

**Q: What happens to the records they own?**
They stay with the inactive user. To hand them to a colleague first, reassign the records from the departing user.

**Q: What if Salesforce won’t let the user be deactivated?**
The run stops and records the reason Salesforce gives. Freezing the account blocks sign-in while that is sorted out.

---

This is the Markdown version of https://stepwork.com/marketplace/deactivate-user-in-salesforce, built from the same copy as the page. Everything about Stepwork for AI tools: https://stepwork.com/llms.txt. Book a demo: https://calendly.com/shaun-maclellan/1-1-w-shaun-stepwork
