**Source URL:** https://limited.veevavault.dev/qualityone/mdl/component-types/docmatchingrule

# Docmatchingrule

**Class:** `metadata`

Dynamic Access Control (DAC) is an access control model for documents, which automates the assignment of users to document roles.

Learn about [Dynamic Access Control for Documents in Vault Help](https://platform.veevavault.help/en/lr/31824).

| Attribute | Metadata | Description |
| --- | --- | --- |
| `lifecycle` | Type: Component **Required** | The lifecycle this rule applies to. |
| `role` | Type: Component **Required** | The role this rule applies to. |
| `active` | Type: Boolean **Required** | Indicates whether the component is active. |
| `description` | Type: String Max length: 255 | General description for this rule. |
| `label` | Type: String **Required** Max length: 60 | UI-friendly string in the Vault's base language. |

### Docmatchingcriterion

| Attribute | Metadata | Description |
| --- | --- | --- |
| `object_field` | Type: Component **Required** | The field of the `object` to match on. |
| `data_field` | Type: Component **Required** | The field on the document to match on. |
| `object` | Type: Component **Required** | The Object the matching rule is defined on. |

### Supported Operations

| Operation | Support |
| --- | --- |
| Create | Yes |
| Recreate | Yes |
| Alter | Yes |
| Drop | Yes |
| Rename | Yes |
| Describe | Yes |
| Generate Recreate | Yes |
| Queryable | No |

---

**Previous:** [Doclifecycle](/qualityone/mdl/component-types/doclifecycle)  
**Next:** [Docparticipantrule](/qualityone/mdl/component-types/docparticipantrule)