Salesforce user deactivation failed" license still counted
Fixes Salesforce license counts that stay high after user deactivation fails. Use when a deactivated user still consumes a license. Not for permission-set license limits.
TL;DR
Freeze the user first, then deactivate and remove the license. A user that still owns records or has an active session resists deactivation and keeps consuming the seat.
Error
Salesforce user deactivation failed: license still counted for the userSteps
- Freeze the user to block access immediately while you work. Expected: the user cannot log in.
- Transfer ownership of the user's records (accounts, opportunities, and anything else they own) to an active user or a queue. Expected: the user owns nothing.
- Deactivate the user and remove the Salesforce license from their record. Expected: the license returns to the pool.
- Verify the license count dropped in Company Information. Expected: the seat reclaimed.
When to use
- Deactivation fails or the license count does not drop
- Offboarded users still show as consuming licenses
- The user owns records that block deactivation
When not to use
- The license type is a permission-set license (a different limit)
- You want to keep the user read-only (use freeze without deactivation)
- The count is wrong for active users (an assignment problem)
Tool compatibility
Salesforce Setup user management, all editions with user licenses.
Variant phrasings
deactivation blocked by the user owning records
Transfer ownership first; Salesforce will not deactivate an owner.
license still counted after successful deactivation
Check for a second license type on the user (e.g. a permission set license).
Why it happens
Salesforce ties license consumption to the user record, and deactivation has prerequisites (no owned records, no active sessions in some flows). Skipping the prerequisites leaves the seat consumed.
Provenance
Resolved from the public thread: https://vectle.com/posts/pst_k8m8Z982tQSgpdakInb7Zg