Salesforce Tutorial# 6: Salesforce Security Model and Overview

Data Security is big challenge for any cloud platform. Salesforce Security model provide security at different levels like Object level, Field level, Record Level etc to make consumer’s data more secured. In this article we will get an overview of Salesforce Security Model.

Salesforce limits data exposure to maintain the security on various levels. Salesforce makes authentication of users to avoid data access by unauthorized users. For user authentication salesforce builds combination of authentication methods which are suitable for organisational need as well as customers need. It may include Password, Two-Factor Authentication, Network based security, Session security etc.

Salesforce declares various sharing rules for different level. Following are the few sharing rules with their default sharing access.

  1. Account sharing rules : Accounts and their associated contracts, opportunities, cases, and optionally, contacts and orders
  2. Account territory sharing rules : This can be shared with Accounts and their associated cases, contracts, contacts, and opportunities
  3. Campaign sharing rules : Individual campaign records
  4. User sharing rules : Individual user record
  5. Opportunity sharing rules : Individual opportunities and their associated accounts

Apart from these sharing rules we can have criteria based sharing rules which determine whom to share records with based on field values in records. You can create criteria-based sharing rules for opportunities, cases, contacts, leads, campaigns, and custom objects, accounts. We can create up to 50 criteria-based sharing rules per object.

Object Level Security:

To maintain object level security salesforce allow various access levels of object to the user.

ReadUser can only read data (view data)
EditUser can edit data (read + write data)
CreateUser can read and Create data
DeleteUser can read, edit and delete data
Modify AllUsers can view all records associated with object , ( sharing settings are ignored).
View AllUsers can read, edit, delete, transfer, and approve all records associated with this object, (sharing settings are ignored).

 Record Level Securities

Salesforce allow you to share your records with others setting permissions like Full access, Read/Write, Read only and private access. In Full access user can edit, delete, transfer and view record. User can even extend the sharing access to other users. In Read/Write access user can perform only Read or write operations on record. In read only mode user can only view the record. In private mode the record is not shared with any other user.

  1. Describe OWD (Organization-Wide Default) : Organization-wide sharing settings specify the default level of access to records and can be set separately for contacts, , contacts, accounts, activities, assets, campaigns, cases, leads, opportunities, orders, and custom objects.
  2. Record sharing using Roll-Hierarchy:

We can define a user role hierarchy that can be use with sharing settings to determine the levels of access that users have for the data. These roles within the hierarchy affect access on key components such as records and reports.

Field Level Securities

To set field level security we define field permissions. These permissions specify the access level for each field in an object. This feature is available in salesforce classic and Lightning Experience.

Steps to define field level security

  1. From the management settings for the field’s object, go to the fields area.
  2. Select the field.
  3. Click on View Field Accessibility.
  4. Specify the field’s access level.

There are different access levels for field data.

Access LevelEnabled Settings in Permission Sets and Enhanced Profile User InterfaceEnabled Settings in Original Profile and Field-Level Security Interfaces
Users can read and edit the field.Read and EditVisible
Users can read but not edit the field.ReadVisible and Read-Only
Users can’t read or edit the field.NoneNone


Field Properties:

Apart from access level of field, Salesforce allows field level security by setting some field properties as follows:

  1. Unique property: If this property is checked then salesforce prevents that field from duplicates.
  1. External Id (Considered in Data Management): An external ID field contains record identifiers from a system outside of Salesforce. For each object in salesforce can have custom fields, we can set up auto-number, email, number, or text fields as external IDs.
  1. Required property: This property makes the field required everywhere in Salesforce. This property is not available for external objects.

Tutorial Index

  1. Introduction to Cloud Computing ( and
  2. Overview of Database Concepts (
  3. Introduction to
  4. Building Salesforce Custom App and Objects
  5. Object Relationships and Formula Field in Salesforce
  6. Salesforce Security Model and Overview
  7. Automation in Salesforce
  8. Approval Process in Salesforce
  9. Introduction to SOQL and SOSL
  10. Introduction to Apex
  11. Salesforce Data Management
  12. Visualforce MVC Architecture on Cloud
  13. Salesforce Reports and Dashboards
  14. Building a Visualforce (Custom) Page for the Salesforce App
  15. Salesforce Sandbox and Overview of capabilities
  16. Learning Apex and Deployment Tools


Add a Comment

Your email address will not be published. Required fields are marked *