Today, while working on one of our client's organization there was a requirement to get the detail of Owner of a collaboration group. We couldn't use Salesforce UI to get and look into CollaborationGroup because of some reason. I used ID of CollaborationGroup to make a query and get OwnerId field's value. OwnerId was that of a user, since it was starting with '005'. When I run a query on User to get detail of this user, I was surprised that query returned 0 records. I was puzzled, since CollaborationGroup has a user as owner, but query is not returning me detail of this user.
After much of exploration, I realised that it is because of one of feature released in Winter14 'User Sharing'.
Following is detail of what it is:-
Control who sees who in the organization with standard sharing functionality.
User Sharing enables you to show or hide an internal or external user from another user in your organization. Previously, User Sharing for external users was enabled by default with Communities, while User Sharing for internal users was available through a pilot program. With Winter ’14, User Sharing is automatically enabled in new organizations. You can:
- Set the organization-wide defaults for user records to Private or Public Read Only.
- Create user sharing rules based on group membership or other criteria.
- Create manual shares for user records to open access to individual users or groups.
- Control the visibility of external users in customer or partner portals and communities.
Existing organizations can contact salesforce.com to enable User Sharing.
How can your organization use User Sharing? For example, you might be a manufacturer who needs to include all dealers in your organization while still keeping them from seeing or interacting with each other. You can set the organization-wide defaults for the user object to Private. Then, open up access among groups of dealers who need to see and interact with each other in the organization with sharing rules or manual sharing. Additionally, you can assign the “View All Users” permission to users who need to see everyone in the organization.
If you have access to a record owned by a user to whom you don’t have access, you’ll receive an insufficient privileges error when hovering on the owner’s name. Similarly, on Chatter, if you lost access to a user, you cannot @mention him or her. You’ll not be able to hover their names for a full profile nor see their profile page. But you can @ mention the user if you are in a Chatter group together or if you are in the same conversation thread.
Comments
Post a Comment