# Setting validation rules

{% hint style="info" %}
Registration Authority validation rules can only be written and assigned by Registration Authority Managers and Registrars, or Registry Administrators.

Registry-wide validation rules can only be written and assigned by Registry Administrators.
{% endhint %}

Validation Rules allow Registration Authority Managers and Registrars to set business rules for metadata within their Registration Authority, or allow Registry Administrators to set registry-wide rules for all content.

Validation Rules can be used to specify:

* Mandatory fields
* Uniqueness of fields
* Length of fields
* Formats of names.

### How to assign a validation rule to a Registration Authority <a href="#how_to_create_validation_rules_for_a_registration_authority" id="how_to_create_validation_rules_for_a_registration_authority"></a>

1. Select 'Browse' from the registry header.

<figure><img src="/files/sEQOjIVR0aUvAsjvz1Di" alt=""><figcaption></figcaption></figure>

2. Select the icon for 'Registration Authorities', or 'Browse' beneath it.

<figure><img src="/files/HJsULJYx0W9cZ3v1Ta8q" alt=""><figcaption></figcaption></figure>

3. Select the Registration Authority you wish to write a validation rule for.

<figure><img src="/files/eLlqJLudjJNkRIHbM6HQ" alt=""><figcaption></figcaption></figure>

4. Select the 'Settings' tab.

<figure><img src="/files/bkjpcMg9QkarTFmqtAOu" alt=""><figcaption></figcaption></figure>

5. Select 'Validation Rules'.

<figure><img src="/files/iaeCAdoLzsmSZdfEAFxK" alt=""><figcaption></figcaption></figure>

6. [Write your desired validation rule(s)](/registration-authorities/creating-and-editing-registration-authorities/validation-rules/setting-validation-rules/writing-validation-rules.md) into the 'Rules' field, then select 'Submit'.

<figure><img src="/files/IBaxNWtHzf4AHbj8MLIU" alt=""><figcaption></figcaption></figure>

### How to assign a registry-wide validation rule

1. Select 'Administrator tools' from the dashboard side panel.

<figure><img src="/files/Shfce3rDpEUXCJjQ8Zwi" alt=""><figcaption></figcaption></figure>

2. Select 'Manage Registry Validation Rules'.

<figure><img src="/files/nbRJvsZa6GhdaE2omWhf" alt=""><figcaption></figcaption></figure>

3. [Write your desired validation rule(s)](/registration-authorities/creating-and-editing-registration-authorities/validation-rules/setting-validation-rules/writing-validation-rules.md) into the 'Rules' field, then select 'Submit'.

<figure><img src="/files/1Ro7uGoMZ52vgiAfcgef" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.aristotlemetadata.com/registration-authorities/creating-and-editing-registration-authorities/validation-rules/setting-validation-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
