Organization-Wide Defaults in Salesforce | How to Set the Org-Wide Sharing Defaults for Users in Salesforce

Do you want to learn about Organization-Wide Defaults in Salesforce? In this Salesforce tutorial, I will explain how to Set Org-Wide Sharing Defaults for Users in Salesforce. It is possible to Set the Org-Wide Sharing Defaults for Users in Salesforce lighting and Salesforce Classic.

What is OWD (Organization-Wide Defaults) in Salesforce?

OWD (Organization-Wide Defaults) is the baseline of Record-level Security. It is the most restrictive level in Salesforce. It decides the user’s default level of access in Salesforce. It plays a very important role in maintaining the privacy and security in Salesforce.

Let’s assume an example to understand What is OWD (Organization-Wide Defaults); you have a custom object, let’s say a Student Object.

Two different users who are on the same profile are assigned to that object, and we need to Restrict them from editing each other’s records, but they should see each other’s records in Read Only form. Then OWD (Organization-Wide Defaults) plays an important role here.

There are following 3 types of Data Security in Salesforce.

  • Object Level Security.
  • Field Level Security.
  • Record Level Security.

In Salesforce, OWD comes under the Record Level Security, which means using OWD, we can manage access so the user can have permission to access the object’s data. Each object can have a different OWD. In OWD records, the owner plays the main role, which means the owner can see whose records. Who has created the record doesn’t matter.

See also  How to Restrict Users From Switching Salesforce Lightning to Salesforce Classic

There are the following types of OWD in Salesforce.

  • Private – In Private, only the owner of the record can access the records, and the owner can edit records; other users have no access to see or edit records. At profile creation time which permissions, the user has only that operations can be performed on the object.
  • Public Read Only – In Public Read only, other users can only Read records, and only the owner of the record can have edit access to the records.
  • Public Read/Write – In Public Read/Write, any user can access other user’s records also and do operations with the permission they have on their profile.
  • Controlled By Parent – When we create a Master-Detail Relationship between two custom objects, the visibility of the child object is automatically set as Controlled By Parent.
  • View All – In View All, all users can access all records in read-only format and do operations with the permission they have on their profile.
  • Modify All – In Modify All, all users can access all records, and they can edit records also.

How to know current Which OWD has applied to your Object

  1. Go to Setup -> Quick Find Box -> Search “Sharing Setting”.
  2. Select the Object that you want to check.
  3. There you can see which OWD has applied to your Object.

How can Set the OWD(Organization-Wide Defaults) in Salesforce Lightning

In the below steps, we will learn to Set the OWD(Organization-Wide Defaults) in Salesforce Lightning.

1. Go to the Setup page, then search and select the Sharing Setting in the Quick Find Box.

See also  How to Create Restriction Rules in Salesforce

2. To Select the object go to the Manage Sharing Setting for: then select the object. For eg. Here I have selected the Student Object.

3. In the setup of sharing Settings, go to the section Organization-Wide Defaults and click on the Edit button.

4. Select the Object in which you have to customize Default Internal Access. In this example, I have selected the Student object and changed OWD Public Read Only.

This is how you can set the Org-Wide Sharing Defaults for Users in Salesforce lighting.

How can Set the OWD(Organization-Wide Defaults) in Salesforce Classic

In the below steps, we will learn to Set the OWD(Organization-Wide Defaults) in Salesforce Classic.

1. Go to the Setup page, then search and select the Sharing Setting under the Security Controls in the Quick Find Box.

2. To Select the object go to the Manage Sharing Setting for: then select the object.

3. In the setup of sharing Settings, go to the section Organization-Wide Defaults and click on the Edit button.

4. Select the Object in which you have to customize Default Internal Access. In this example, I have selected the Student object and changed OWD Public Read Only.

This is how you can set the Org-Wide Sharing Defaults for Users in Salesforce Classic.

Conclusion

I hope you have got the idea about setting the Org-Wide Sharing Defaults for Users in Salesforce Lighting and Salesforce Classic. Also, we explored what OWD is in Salesforce, the types of OWD in Salesforce, and how OWD plays an important role in record-level security.

See also  How to Setup Criteria-Based Sharing Rules in Salesforce

We also covered how to check the currently applied OWD and How to Change the OWD Type.

You may like to read