I have a custom object K__c with OWD setting Private and with Grant Access Using Hierarchies set to true.
There is a record k1 with owner u1.
u1 has role r1.
Manager of u1 is u2.
r1 reports to r2.
Role of u2 is rx.
rx doesn't belong to the r1 parent hierarchy structure.
I've created a K_share record with :
ParentId = k1
UserOrGroupId = u2
AccessLevel = Read
RowCause = Manual
Still u2 is getting insufficient privilege error while accessing k1.
I've a approval process in place, and when I try to submit for approval, it is throwing error:
Unable to Submit for Approval
as manager of u1, i.e u2, doesn't have access to k1 by role hierarchy setting.
Is there any other way to avoid this error, without changing the role of these two users or changing the ManagerId of this user?
Please suggest.