When you attempt to deactivate a User in Salesforce, you may encounter the following error:
"Cannot complete this operation. Cannot inactivate user that is the value of a hierarchy field: User Hierarchy. : Jane Doe"
This error occurs when the user you are attempting to deactivate is still referenced as the value of a custom User Hierarchy field in another user record (in this example, Jane Doe's record). Salesforce prevents deactivation of users who are referenced in hierarchy fields to maintain data integrity. For background on why this restriction exists, review the Considerations for Deactivating Users documentation.
The embedded video provides an overview of deactivating users in Salesforce, including common errors encountered and recommended steps for resolving them before proceeding with deactivation.
If deleting or removing the custom User Hierarchy field is not possible, you can use Salesforce Data Loader to bulk-clear the field value for all users who reference the target user in the hierarchy field. Once cleared, you can deactivate the original user as intended.
Once the update completes, the custom Hierarchy field is cleared for all affected users and you can deactivate the original user.
000384962

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.