This section provides more information on the RestrictionRule Tooling API object used to
create restriction rules.
Available in: Lightning Experience in Enterprise, Performance,
Unlimited, and Developer Editions
RestrictionRule
Represents a restriction rule or a scoping rule. A restriction rule has EnforcementType set to Restrict and controls the access that specified users have to designated records. A scoping rule has EnforcementType set to Scoping and controls the default records that your users see without restricting access.