---
schema_version: "1"
id: 98d22e3f61e0cd66e75e5c9d5ac320d6e39c96241c3e1e53e2641ceeaab2f487
title: Metadata API Reference
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/security/scoping-rules-dev-guide/guides/scoping-rules/scoping-rules-reference-metadata.md
canonical_url: https://developer.salesforce.com/docs/platform/scoping-rules-dev-guide/guide/scoping-rules-reference-metadata.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: a0e0f389b71aaf7d9ea2936e9b68a68107e53cc9534e115bc8b324ed5150d600
products:
  - Scoping Rules Developer Guide
  - Security
---

# Metadata API Reference

This section provides more information on the RestrictionRule Metadata API type used to create scoping rules.

|Required Editions|
|-----------------|
|Available in: Lightning Experience in **Performance**,**Unlimited**, and **Developer** editions.|

The following list links to the RestrictionRule Metadata API type.

-   [RestrictionRule](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_restrictionrule.htm)

    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. This type extends the Metadata metadata type and inherits its `fullName` field.


