Object Level Security:
We can prevent users or group of users editing,creating,viewing or deleting records of an object by setting permission on the object.
Two ways of setting object permissions
Profiles
Permission Sets
Profile is Collection of settings and permissions that determine which data and features user will have access to
Profile Controls
Object Permission
Field Permission
User Permission
Tab setting
App Setting
Apex Class Access
Visualforce pages access
Login Ip Ranges
Record Types
Page layout
Login Hours
Types of Profile
We have 2 types of profiles Standard Profile and Custom Profile
Some of the default Standard Profiles
Standard User
Read Only
Marketing User,Contract Manager,Solution Manager ( Including Standard User permission this profile as additional access to certain access)
System Administrator(View All and Modified All)
why custom profiles? Object permission on Standard Profile cannot be edited
Custom Profiles
Can be made by Cloning the Standard profiles.
Every profile is based on user license type which determines features of salesforce users that will have access to.
Important Points on Profiles
Every profile should have atleast one visible app.
Tabs of objects to shown in App should have access to that object for that profile
A profile can be assigned to many users but users can be assigned too only one single profile at a time.
View all and modified all are not available for idea, articles type, pricebooks and products.
To view object permission: View Setup and Configure.
To edit object permission: Manage Profiles and Permission sets and Customize Application
Permission Set:
Collection of settings and permissions that determine which data and features user will have access to
But these are used to extend the access or grant additional access to users without modifying their profiles
Permissions are additive which means we can’t remove existing permission which they have through their profile by assigning a permission set less access. We can only add permission.
Permission sets Control:
Object Permission
Field Permission
User Permission
Tab setting
App Setting
Apex Class Access
Visualforce pages access
Permission set are also based on license type but its not compulsory and once assigned it cannot be changed,
A user can be assigned to the multiple permission sets..
Important Points to Remember:
In the permission set we cannot control page layout assignments.
Difference between profile and permission set.