Resriction rules let you enhance your security by allowing certain users to access only specified records.
They prevent users from accessing records that can contain sensitive data or information that isn't essential to their work.
Restriction rules are avaialble for custom objects,contracts,tasks and events and can be configured through the Tooling or
Metadata API.
ex :
<?xml version="1.0" encoding="UTF-8"?>
<RestrictionRule xmlns="http://soap.sforce.com/2006/04/metadata">
<active>true</active>
<description>Allows users with a specific profile to see only tasks that they own.</description>
<enforcementType>Restrict</enforcementType>
<masterLabel>Tasks You Own</masterLabel>
<recordFilter>OwnerId = $User.Id</recordFilter>
<targetEntity>Task</targetEntity>
<userCriteria>$User.ProfileId = '005xxxxxxxxxxxx'</userCriteria>
<version>1</version>
</RestrictionRule>
Restriction rules are applied to the following Salesforce features:
List Views
Lookups
Related Lists
Reports
Search
SOQL
SOSL
No comments:
Post a Comment