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
Raghav TRaghav T 

Does Role hierarchy impact recycle bin in salesforce?

Hello,
I have roles set in my salesforce org. There are multiple role like Support Manager, CS Manager, CS Representative.
This role hierarchy looks like this: 
> 1. Support Manager
       > i. CS Manager (reports to Support Manager)
              > a . CS Representative (reports to CS Manager)
Now the scenario is like, when ever a record gets deleted by CS Representative can the CS Manager should be able to restore that record.
For now what i see is, if any user delete the record thye can restore its own not others.
And only system admin can see and restore all data, reason might be system admin has Mdify All Data as a system permission.
Can anyone guide me on this what should i do? how can we make the above role user to restore the record that is deleted by the below role user in rolw hierarchy?
Thanks.
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Raghav,

Yes as the role below doe't have access to record he may not be access to record even in recycle bin as well. So that role is not able to find it. As system admin have modify all access he can restore all the data.

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,
Raghav TRaghav T
Hi Sai Praveen,
Thanks for the quick response.
Does the above role, can see the deleted record of the below roles and restore it, without having the "Modify All Data " permission?