Users receive a message, 'You cannot deactivate this user. You cannot deactivate a user who is the default owner of cases' or ' You cannot deactivate the Default Workflow User' etc.
To deactivate the user, first reassign any default ownership or automation assignments to another active user, then return to the User Detail page to complete deactivation.
Navigate to Support Settings:
Change the "Default Case Owner" and "Automated Case User" to another active user as needed.
Return to the User Detail page and deactivate the user by deselecting the Active checkbox.
If deactivation is still not possible, check and adjust the Default Workflow User in Process Automation Settings.
The following case-related assignments may also block deactivation:
The following lead-related assignments may also block deactivation:
The following workflow and approval assignments may also block deactivation:
If it is not immediately possible to deactivate the user, the administrator can freeze the user's account as a temporary measure. Freezing suspends the user's access without requiring all reassignments to be completed immediately.
See Freeze or Unfreeze User Accounts documentation for more information.
Note: When the error appears, a link is provided directly to the location in Setup where the designation change can be made. Currently, not all links work correctly in Lightning Experience. Switch to Salesforce Classic as needed.
Considerations for Deactivating Users
000384586

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 are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security 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 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.