When using the Salesforce API to assign a Task record to an inactive user, most Salesforce organizations return the error: "INACTIVE_OWNER_OR_USER, operation performed with inactive user." However, in some organizations, the same API operation completes successfully without error. This inconsistency occurs because of a specific org-level permission called "Create Audit Fields."
The "Create Audit Fields" permission (also known as the "Allow setting of audit fields such as Created By, Created Date, Last Modified By, Last Modified Date via API" permission) allows the API to set system audit fields on records. When this permission is enabled at the org level, Salesforce relaxes enforcement of the INACTIVE_OWNER_OR_USER validation, allowing assignment to inactive users via API. When the permission is disabled (the default state for most orgs), Salesforce enforces the validation and returns the INACTIVE_OWNER_OR_USER error.
To view or enable the Create Audit Fields permission, contact Salesforce Support to request it be enabled, or refer to the Salesforce Help article linked in Additional Resources for the enablement process.
Note: Assigning records to inactive users via the Salesforce API is only supported through API calls — this cannot be done through the Salesforce user interface.
000386481

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.