function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Surender reddy SalukutiSurender reddy Salukuti 

User object custom check box field update getting issue?

Hi all,


We have a requirement where AgentOwner should be able to give assign permissionset to AgentStaff.

We created a lightning component with toggle button, when Agent set checks the toggle 'ON', we are updating a custom checkbox create on user object as true.

While doing so we are getting an error message

common.apex.runtime.impl.DmlExecutionException: Update failed. First exception on row 0 with id 0053i00000213MhAAI; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id:

Please let us know how to address this with out giving manage user permission

P.S: We already checked field permission. and we are following territory based hierarchy

Thank you,

Surender Reddy