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
niki s 7niki s 7 

suppose user a has created some records on account object and he don't want his manger to view those record . how to achieve this bcause for standard object we can't disable grant access hierarchy button

suppose user a has created some records on account object and he don't want his manger to view those record . how to achieve this bcause for standard object we can't disable grant access hierarchy button
ShivankurShivankur (Salesforce Developers) 
Hi Niki,

You can uncheck the "Grant access using hierarchies" in the sharing settings as one of the possibility, but you cannot do it for Account. As per your comments it is not possible as far as I know to do it.

There is a setting "Grant Access Using Hierarchies" on public group by which you can prevent flow of access to upper in hierarchy of users of group. You can try disable that:
PG

Once you disable that then access will be restricted to the users of group only. By default this comes as checked while creating group, you need to specifically uncheck it.

Reference : https://help.salesforce.com/htviewhelpdoc?id=creating_and_editing_groups.htm&siteLang=en_US

NOTE: If Grant Access Using Hierarchies is deselected, users that are higher in the role hierarchy don’t receive automatic access. However, some users—such as those with the “View All” and “Modify All” object permissions and the “View All Data” and “Modify All Data” system permissions—can still access records they don’t own.

Hope above information helps. Please mark as Best Answer so that it can help others in future.

Thanks.