---
title: Limiting the documents users can create
related:
  - https://docs.kentico.com/k8/developing-websites/defining-website-data-structure/document-types/creating-document-types.md
  - https://docs.kentico.com/k8/developing-websites/defining-website-data-structure/document-types/configuring-document-types/extending-the-document-type-listing-filter.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

This topic explains how you can make creating new documents more intuitive for editors on your site. You can also use the same functionality to control which documents are created in certain sections of the site and under certain document types in general. There are two complementary ways how you can achieve this:

- [Allowed document types](#allowing-users-to-place-certain-documents-under-a-document-type) - define which document types users can place under the current document type. This is a general setting that doesn't take into account the path that users place the document types under.
- [Document type scopes](#specifying-which-documents-users-can-create-under-certain-paths) - define which document types users can use when creating new documents under specified paths. You can use scopes to distinguish certain sections of the website and restrict the documents that users can create in them.

## Allowing users to place certain documents under a document type

You can control which document types users can create under a specific document type. Do that by adding allowed types to a document type. For example, you may want to allow users to only create _File (CMS.File)_ document types under _Folder (CMS.Folder)_ document types. This rule then applies everywhere on the site\*.\*

### Defining allowed child document types

1. Open the **Document types** application.
2. **Edit** () the document type under which you want to specify allowed document types.
3. Switch to the **Allowed types** tab.
4. Under **Allowed child document types**, click **Add document types**. A **Select document types** dialog opens.
5. Turn the check-box on next to the document types that you want to add to the allowed child document types.
6. Confirm by clicking **OK**.

You have added allowed child document types.

> **Note:** When you add an _allowed child document type_, the system also automatically adds an _allowed parent document type_ to the child document that you are allowing.

![Documents that users can create under a specific document type](https://docs.kentico.com/docsassets/k8/limiting-the-documents-users-can-create/adding_allowed_types.png "Documents that users can create under a specific document type")

## Specifying which documents users can create under certain paths

You can use document type scopes to narrow the number of document types that users can use when they create new documents under specified paths. This makes creating new documents more intuitive, especially if you have many document types in the system. For example, on the sample Corporate site, you may want users to only create _E-Book (CMS.Ebook)_ document types under the /Products/Books/ path.

In this section, you can learn about:

![Creating a new document under a document type scope](https://docs.kentico.com/docsassets/k8/limiting-the-documents-users-can-create/creating_new_document_under_scope.png "Creating a new document under a document type scope")

_**Creating a new document under a document type scope**_

### Creating document type scopes

1. Open the Document types application.
2. Switch to **Scopes**.
3. In the **Site** drop-down list, select the site under which you want to create a new document type scope.
4. Click on **New** **scope**.
5. Specify the path the scope applies to in the **This scope covers** field. You can type the path in or use the **Select** button.
6. Specify the rest of the parameters.

   **Click for a description of the available options:**

   **General** – specify the scope coverage:

   1. **This scope covers** – use the **Select** button to specify the path to which you want the document type scope to apply. You can also type the path in the field directly.

   2. **Apply to the whole section** – enable if you want the scope to apply to all child documents under the specified path as well.**Document types** – specify the document types the scope allows users to create:

   3. **Allow all document types** – turn the check-box on if you want the scope to allow users to create all document types under the specified path.

   4. **Allow only the following document types** – enable the check-box and **Add document types** to specify which document types users can create under the specified path.**Advanced** – specify additional options. These options are also limited to the document types you select in the Document types section.

   5. **Allow creating a linked document** – turn the check-box on to allow users to create a linked document when creating a new document.

   6. **Allow creating A/B test variant** – turn the check-box on to allow users to create an  A/B testing variant when creating a new document.

   7. **Condition** – fill in a condition that further specifies when the scope is applied. For example, you can have two scopes cover the same path, and the more restrictive of the scopes then apply to users who do not have the Global administrator [privilege level](https://docs.kentico.com/k8/managing-users/user-management.md). Scopes with a condition are evaluated before scopes without a condition.
7. **Save** the document type scope.

You have now created a new document type scope.

![Document type scope allowing users to create a single document type under a specified path](https://docs.kentico.com/docsassets/k8/limiting-the-documents-users-can-create/creating_document_type_scope.png "Document type scope allowing users to create a single document type under a specified path")

### Managing document type scopes

In this section, you can learn about:

- [Limiting multiple document types to a specific scope](#limiting-multiple-document-types-to-a-specific-scope) – Use to add multiple document types to a single document type scope.
- [Limiting a document type to multiple scopes](#limiting-a-document-type-to-multiple-scopes) – Use to add a document type to multiple different document type scopes.
- [Removing multiple document types from a scope](#removing-multiple-document-types-from-a-scope) – Use to remove multiple document types from a single document type scope.
- [Removing a document type from multiple scopes](#removing-a-document-type-from-multiple-scopes) – Use to remove a single document type from multiple document types at once.

#### Limiting multiple document types to a specific scope

Use this method if you want to assign multiple document types to a single document type scope. To assign a document type to multiple different document types scopes, use [this method](#limiting-a-document-type-to-multiple-scopes).

1. Open the Document types application.
2. Switch to **Scopes**.
3. In the **Site** drop-down list, select the site under which you want to add document types to an existing document type scope.
4. **Edit** () the document type scope.
5. Enable the **Allow only the following document types** check-box.
6. Click on **Add document types**. The **Select document types** dialog opens.
7. Turn the check-box on next to the document types that you want to add.
8. Confirm by clicking **OK**.
9. **Save** the document type scope.

You have assigned document types to a document type scope.

#### Limiting a document type to multiple scopes

Use this method if you want to assign a document type to multiple different document types scopes. To assign multiple document types to a single document type scope, use [this method](#limiting-multiple-document-types-to-a-specific-scope).

1. Open the Document types application.
2. **Edit** () the document type to which you want to assign document type scopes.
3. Switch to the **Scopes** tab.
4. Click on **Add to scopes**. The **Select** **scopes** dialog opens.
5. Turn the check-box on next to the document type scopes that you want to assign to the document type.
6. Confirm by clicking **OK**.

You have assigned document type scopes to a document type.

#### Removing multiple document types from a scope

Use this method if you want to remove multiple document types from a single document type scope. To remove multiple document type scopes from a document type, use [this method](#removing-a-document-type-from-multiple-scopes).

1. Open the Document types application.
2. Switch to **Scopes**.
3. In the **Site** drop-down list, select the site under which you want to remove document types from an existing document type scope.
4. **Edit** () the document type scope.
5. Turn the check-box on next to the document types that you want to remove.

   > **Tip:** If you want to remove all document types from the document type scope at once, click on (**...**) and choose **Remove all**.
6. Click on**Remove selected**.
7. Confirm by clicking **OK**.
8. **Save** the document type scope.

You have removed document types from a document type scope.

#### Removing a document type from multiple scopes

Use this method if you want to remove a document type from multiple document type scopes at once. To remove multiple document types from a single document type scope, use [this method](#removing-multiple-document-types-from-a-scope).

1. Open the Document types application.
2. **Edit** () the document type from which you want to remove document type scopes.
3. Switch to the **Scopes** tab.
4. Turn the check-box on next to the document type scopes that you want to remove from the document type.
5. Click on **Remove** **selected**.
6. Confirm by clicking **OK**.

You have removed document type scopes from a document type.

## Viewing which documents are users allowed to create under a specific document type

To list the documents users are allowed to create under a document type:

1. Open the Document types application.
2. **Edit** () the document type under which you want to view which documents are users allowed to create.
3. Switch to the **Allowed types** tab.

You have listed the document types users can create under a specific document type.

![Documents that users can create under a specific document type](https://docs.kentico.com/docsassets/k8/limiting-the-documents-users-can-create/adding_allowed_types.png "Documents that users can create under a specific document type")

## Viewing which documents are users allowed to create under a specific path

To list the documents that users are allowed to create under a document type scope:

1. Open the Document types application.
2. Switch to **Scopes**.
3. In the **Site** drop-down list, select the site under which you want to view which documents are users allowed to create under a specific path.
4. **Edit** () the document type scope(s) covering the path.

You have viewed the documents that users are allowed to create under a specific path.

**Note** that some document type scopes can cover not only their specified paths, but all their child documents as well. This is indicated by an enabled **Apply to the whole section** option.

![Document type scope covering a whole section](https://docs.kentico.com/docsassets/k8/limiting-the-documents-users-can-create/document_type_scope_applied_to_whole_section.png "Document type scope covering a whole section")

## Viewing under which paths are users allowed to create a document

You can view under which paths are users allowed to create a certain document type. To do that, list the document type scopes the document type is assigned to:

1. Open the Document types application.
2. **Edit** () the document type for which you want to list the document type scopes.
3. Switch to the **Scopes** tab.
4. In the **Site** drop-down list, select the site under which you want to list the document type scopes.

You have listed the document type scopes to which a document type is assigned.

![Document type included in scopes](https://docs.kentico.com/docsassets/k8/limiting-the-documents-users-can-create/document_type_in_scopes.png "Document type included in scopes")
