---
title: "Create and edit a security domain"
slug: "create-and-edit-a-security-domain"
abstract: "How to create, assign, edit and delete security domains to segment user rights."
---
# Create and edit a security domain

You can create extra domains, for example, for the website of another company or a subsidiary. This is a task for a security architect, and it must be performed by applying a configuration file to the authoring environment using the Deploy app.

> [!warning]
> The remaining action described in this topic are obsolete and will be shortly removed.

## Create a domain

To create a domain:

1. Log in to [SitecoreAI](https://doc.sitecore.com/sai/en/users/sitecoreai/sitecoreai.html).
2. On the Dashboard, on the **Tools** tab, click **Domain Manager**.
3. In the Domain Manager, in the **Domains** group, click **New**.

    ![Domain Manager](https://doc.sitecore.com/api/markdown-image/sai/en/developers/sitecoreai/images/2C0D4666006F49EBB61BE600C92C1100.png)

4. In the **New Domain** dialog box, enter the name of the domain and, if you want the domain to be managed locally, select the **Locally Managed Domain** check box.
5. Click **OK**.

## Assign security accounts to a domain

Because a domain is also a security construct, it must contain users and roles before it has any meaning. You can only assign security accounts to a domain when you create a new user in the User Manager or [create a new role](https://doc.sitecore.com/sai/en/developers/sitecoreai/user-security/users-roles-and-domains/create-and-set-up-a-role.html "Create and set up a role") in the Role Manager. You cannot change the domain of an existing account.

> [!note]
> A security account can only be assigned to one domain. If, for example, a user needs to access multiple domains, you must create separate roles for each domain that they need to access and make the user a member of all the relevant roles.

## Edit a domain

When you edit a domain, the only setting you can change is whether the domain should be a locally managed domain.

> [!note]
> In a locally managed domain, the users and roles are domain specific and the users can only see the items in the domain that they belong to and not the other domains in the system.

To edit a domain:

1. Open the Domain Manager and click the domain that you want to edit.
2. In the **Domains** group, click **Edit**.
3. In the **Edit Domain** dialog box, select or clear the **Locally Managed Domain** check box.

## Delete a domain

If you no longer need a domain, you can delete it.

> [!important]
> When you delete a domain, the security accounts that belong to the domain are not deleted. To make sure that you do not have accounts that cannot be used, you should either delete the users or roles or make sure that they are members of another role that belongs to a domain.

To delete a domain:

1. Open the Domain Manager and click the domain you want to delete.
2. In the **Domains** group, click **Delete**.