**Source URL:** https://limited.veevavault.dev/quality/mdl/component-types/qualitydynamicenrollmentrule

# Qualitydynamicenrollmentrule

**Class:** `metadata`

This component is specific to Quality family Vaults and supports the Dynamic Enrollment feature of the Veeva Training application. Defines a *Dynamic Enrollment Rule*, which is used to automatically assign *Learner* roles to a *Person*.

Learn more about [Dynamic Enrollment in Vault Help](https://quality.veevavault.help/en/lr/56334513).

| Attribute | Metadata | Description |
| --- | --- | --- |
| `label` | Type: String Max length: 60 | UI-friendly string in the Vault’s base language. |
| `active` | Type: Boolean | Indicates whether the component is active. |
| `description` | Type: String Max length: 1500 | A general description of the *Dynamic Enrollment Rule*. |
| `matching_type` | Type: Enum **Required** Allowed values: EXACT | The matching type for the rule. At this time, only `EXACT` is supported. |

### Qualitydynamicenrollmentmatchingfield

| Attribute | Metadata | Description |
| --- | --- | --- |
| `label` | Type: String Max length: 60 | UI-friendly string in the Vault’s base language. |
| `active` | Type: Boolean | Indicates whether the component is active. |
| `learner_role_field` | Type: Subcomponent **Required** | The field on the *Learner Role* object to use for matching. For example, `Field.department__c`. |
| `learner_role_object` | Type: Component **Required** | The field on the *Learner Role* object to use for matching. For example, `Field.department__c`. |
| `person_field` | Type: Subcomponent **Required** | The field on the *Person* object to use for matching. For example, `Field.department__v`. |
| `person_object` | Type: Component **Required** | The *Person* object. |

### Supported Operations

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

---

**Previous:** [Qualitydistributiongroupfilterset](/quality/mdl/component-types/qualitydistributiongroupfilterset)  
**Next:** [Qualityexternalnotification](/quality/mdl/component-types/qualityexternalnotification)