Google News
logo
Salesforce - Interview Questions
What are the different ways to share a record?
Role hierarchy : When a user is added to a role, all users above the current user in the role hierarchy have access to reading and sharing the records and inheriting permissions. The steps for role hierarchy are : 
Setup → Manage Users → roles → set up roles and click on 'add role', → create a name and click on save.
OWD : Organization-Wide Defaults allow you to define an organization's baseline setting and give permissions to the organization-wide. It helps define a user's accessibility level where they can view other users' records. For OWD, follow these steps:
Setup → Security Controls → click on 'sharing settings' → Edit. 
Manual sharing : For sharing a single record/file to a particular user/group of users via manual access. A button is available on the detail page of the record when the OWD setting is private.

Criteria based sharing rules : We have to share records based on conditions. For instance, share records with a user/group with the criteria of the country- India. The steps for sharing are : 
Setup → security controls → sharing settings → select the object, provide name and conditions, and then click on save.
Apex sharing : One can share every object in Salesforce by creating a record for the shared object.
Advertisement