When attempting to reassign an approval step by updating the ActorId field on the ProcessInstanceWorkitem object via Apex, you may receive the error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY insufficient access rights on cross-reference id. This error indicates that the user being assigned as the new Actor does not have the required sharing access to the record. OWD (Organization-Wide Default) sharing settings and the role hierarchy are typically the root cause.ActorId is the ID of the user who is currently responsible for approving an approval request on a ProcessInstanceWorkitem record.
For a user to be assigned as the Actor on an approval step, they must have sharing access to the record being approved. If sharing access is insufficient, you receive the INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY error.
OWD (Organization-Wide Default) is the baseline level of record access configured for all users in your org. When OWD is set to Private or Public Read Only, sharing must be explicitly granted.
If your OWD is set to Private or Public Read Only:
ActorId.If you are trying to reassign an approval step owned by User2 while logged in as User1:
ActorId is set to User2's ID).System.runAs(User2)).INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY error.ActorId update via Apex.000387357

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.