> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opal.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration templates

**Configuration templates** are groupings of settings you can reuse across multiple resources and groups. Streamlined configuration settings allows your team to move faster, and increases security by avoiding policy drift.

## Create templates

To create a template, go to **Templates**, then select **Configuration Templates**. Click **+ Configuration Template**.

<img src="https://mintcdn.com/opalsecurity/lt0M-hBs5yNe5ff5/images/docs/b70cfbde097a9e1d2ab20c9f1510216e1860bf653da34b007cac1c761be991be-create-configuration-template.png?fit=max&auto=format&n=lt0M-hBs5yNe5ff5&q=85&s=f0e121d1c941e29652cfd3f046f275fa" alt="" width="2996" height="1530" data-path="images/docs/b70cfbde097a9e1d2ab20c9f1510216e1860bf653da34b007cac1c761be991be-create-configuration-template.png" />

You can provide a name, select an admin, optionally link a Slack channel, optionally add on-call members, optionally add break-glass users, and configure MFA settings, the same as you would in an resource-specific request configuration.

<img src="https://mintcdn.com/opalsecurity/lwwIeFbsleftxaXx/images/docs/cc01cea-Screenshot_2024-03-14_at_4.52.58_PM.png?fit=max&auto=format&n=lwwIeFbsleftxaXx&q=85&s=e44c83a373238a77802f68a41651cb55" alt="" width="2265" height="1240" data-path="images/docs/cc01cea-Screenshot_2024-03-14_at_4.52.58_PM.png" />

## Apply templates

To apply a template to a resource or group, edit the field on the resource or group page:

<img src="https://mintcdn.com/opalsecurity/KunPWigry5GIeB5g/images/docs/3b37c74-applyconfigtemp.png?fit=max&auto=format&n=KunPWigry5GIeB5g&q=85&s=10225c8989059d216dd737eb26eded67" alt="" width="2958" height="1658" data-path="images/docs/3b37c74-applyconfigtemp.png" />

When a template is applied, **all its access management settings are configured by the values in the template**:

* If a configuration template is modified, all resources and groups linked to the template are also modified
* The settings cannot be directly edited except by unlinking the configuration template

Configuration templates can be set in bulk:

<img src="https://mintcdn.com/opalsecurity/TlQj9FwRe9HHNEYB/images/docs/0ca5f6dd3e0e27826bd03bcf6c64bd3d9d17801c2df582ac5217258ed4d6eaf7-select-resources-bulk.png?fit=max&auto=format&n=TlQj9FwRe9HHNEYB&q=85&s=71361db89cb2536855158164588c070a" alt="" width="3000" height="1410" data-path="images/docs/0ca5f6dd3e0e27826bd03bcf6c64bd3d9d17801c2df582ac5217258ed4d6eaf7-select-resources-bulk.png" />

<img src="https://mintcdn.com/opalsecurity/odnvD_MsXBxTor9u/images/docs/7cae519-bulkeditresources_2.png?fit=max&auto=format&n=odnvD_MsXBxTor9u&q=85&s=c72818e281bf63b812174e8c46a27456" alt="" width="2958" height="1658" data-path="images/docs/7cae519-bulkeditresources_2.png" />

## Set templates using tags

<Info>
  Importing based on tags is not supported for custom apps, so template mapping does not apply for custom apps.
</Info>

You can also configure Opal to automatically set a configuration template using tags. Go to **Configuration > Templates > Template Mapping and Priority** and associate a tag with a template that you have configured.

When resources or groups are imported with certain tags, the set templates are automatically applied.

Note that templates are only applied on **import**, so you must first create and define the mapping, then import the resources. If you import a resource and later define a template or tag the resource, the template will not be applied. <img src="https://mintcdn.com/opalsecurity/TlQj9FwRe9HHNEYB/images/docs/0ca34d352655b9ece6fc30d0e7936397ce6feaa00c244d45a148ba595cd3a264-template-mapping.png?fit=max&auto=format&n=TlQj9FwRe9HHNEYB&q=85&s=da45fda6f117ac1666ada2f2b0cd5002" alt="" width="2732" height="1344" data-path="images/docs/0ca34d352655b9ece6fc30d0e7936397ce6feaa00c244d45a148ba595cd3a264-template-mapping.png" />

You can also reorder template mappings by selecting **Reorder**, so resources with multiple tags use the template with the highest priority.
