Last Updated on June 1, 2022 by Rakesh Gupta
You can now prevent users from sharing their own user records with other users across the organization. You can also set Organization-Wide Default for the user object to Private.
Business Use Case
Higher management in Universal Container doesn’t want to allow their users to share their user records with other users. On the record detail page, they don’t want to let users see the owner’s details (When users click on the owner name, they drill down to the user record detail page).
Automation Champion Approach (I-do):
Before recent release the Sharing button was available on all user detail pages for organizations with User Sharing. This button enables a user to grant others access to the user’s own user record, a method that is known as manual sharing. Now you can Enable or disable the Sharing button for all users. To solve above business requirements follow the below instructions
- Navigate to Setup | Security | Sharing Setting
- Click on Edit in the Organization-Wide Defaults area
- Set Organization-Wide Default for the User object to Private and uncheck the Manual User Record Sharing checkbox to hide the Sharing button on the user detail page, as shown in the following screenshot:
- Click on Save.
Proof of Concept
I will log in with a different user who has read-only access to another user’s Lead records to test this feature. In this demo, I took the example Lead object to try (OWD Private for user object).
- Navigate to your User detail page and now page doesn’t contains Sharing button, it will look like the following screenshot
- Navigate to Lead tab and open any records, then click on the owner name.
- It will redirect you a new page where it will display error message A full profile is unavailable because you don’t have access to this user.
Things to Remember
- If OWD is set to private, than you can follow to those users in Chatter for which you having read only access to their user record
- If you have disabled the Community User Visibility checkbox in the Sharing Settings page, community users can only be seen by themselves and their superiors in the role hierarchy.
- To Share the user records you can write sharing rule.
Formative Assessment:
I want to hear from you!
What is one thing you learned from this post? How do you envision applying this new knowledge in the real world? Feel free to share in the comments below.
But I could see “Sharing ” button with out selecting option Manual User Record Sharing checkbox and user object is private
I don’t even know how I ended up here, but I thought this post was
good. I don’t know who you are but definitely you’re going to a famous blogger if you are not already 😉 Cheers!
Thanks Adam