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
Sarthak Bajaj 14Sarthak Bajaj 14 

Changing owners in same role for other user's Accounts and opportunities

Hi,
   I am confused on this.I want to allow a user in a role to have a feature to change the owner of Account and Opportunity for iother users in the same role.
Scenerio:
In a role ROLE1, say 4 users are there-A,B,C,D
Now A wants to have the access so that he may change the Account and Opportunities owned by B,C,D can be changes by him.

Can anyone suggest me how can i Achieve this.
Can this be done throgh sharing rule.IF yes-how?
Or do i need to Shift user A a level up in hierarchy.
VineetKumarVineetKumar
This cannot be done using sharing rule. you may have to write an Apex Sharing Rule, to remove the relevant rowcause for other users.
My question is, will the removal based on some click of button, or some stage.
Also, for apex sharing the OWD is not private and the user has all permission on the record.