Guide
How to find inactive Salesforce users
Last updated October 17, 2026
Written by Nuno, Salesforce Consultant
In Setup, open Users, create a list view of active users and add the Last Login column, then sort by it. Anyone on a paid license with no login in the last 30 days, or who has never logged in, is holding a seat you may not need.
With SOQL
Run this in the Developer Console or any SOQL tool to list them with their license:
SELECT Id, Name, Username, Profile.UserLicense.Name, LastLoginDate, CreatedDate
FROM User
WHERE IsActive = true
AND UserType = 'Standard'
AND (LastLoginDate < LAST_N_DAYS:30 OR LastLoginDate = null)
ORDER BY LastLoginDate ASC NULLS FIRSTBefore you deactivate anyone
- Skip people created in the last 30 days; they may not have started yet.
- Check whether the user runs an integration. Integration logins often don't show as interactive logins; move those to an Integration license instead.
- Check what the user owns: records, scheduled reports, flows running as them, and default owner settings. Reassign before deactivating.
- If you need to cut access straight away but can't deactivate yet, freeze the user. Freezing doesn't free the license, so deactivate once the clean-up is done.
Logging in isn't the same as needing the license
Some people log in but only read. A user who hasn't created or edited an Account, Contact, Lead, Opportunity, Case, Task or Event in 90 days may fit a cheaper license. Salesforce Saver checks this alongside last login, and counts records per user without reading what's in them.
Questions
How many days without a login counts as inactive?
30 days is a common threshold for a paid seat. Use 90 days if your team has seasonal users.
Does deactivating a user delete their data?
No. Records they own stay in the org and keep their owner. You can reactivate the user later if a license is free.
Check your own org
Salesforce Saver runs these checks in one read-only scan and shows a priced list of savings. The scan is free. Start a free scan or see every query it runs.