# Restricted Content

Restricted content allows you to control who can view documents and collections. There are two types of restricted content.

1. Restricted documents
2. Restricted taxonomies (collections)

Access to restricted content is controlled through **document access groups**.

## Document access groups

Access to restricted content is controlled through document access groups. Only users that belong to the groups associated with the restricted content can view it.

You must set up the document access groups before you can associate them with restricted documents or collections.

A document access group is visible to the users that belong to the group. A document access group is linked to a **permission group**, which is an internal group to manage user permissions. Users belong to permission groups.

### **Create a permission group**

You must create a permission group before you can create a document access group.

1. Go to groups on your menu items and click to **add group**.

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

2. Give the group a name. **This name is visible to external users**.
3. Do not add any permissions to the group.
4. Clive **Save**.

### Create a document access group

Now create a document access group that uses the permission group.

1. Navigate to **Document Access Groups** on the left menu.

<div align="left"><figure><img src="/files/pjVdmllMwWo1Ixgkr1c9" alt="" width="230"><figcaption></figcaption></figure></div>

3. Click **Add document access group**.

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

4. Select the permission group you just created from the dropdown list.

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

5. Provide a brief description of the document access group. **This is visible to external users**.
6. Click **Save**.

## **Restrict access to documents**

Access to certain documents can be restricted.

Only users who belong to a document access group group can view restricted documents; others will see an error message.

1. Select the document you want to restrict.
2. Go to the **Advanced** tab and check the **Restricted** box.
3. Click **Save and continue editing**.

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

3. Click **Select restricted document access groups**.
4. Check the checkbox alongside the document access groups who should have access to this document.

<div align="left"><figure><img src="/files/ubMpkp6YjRU2FDjpclyn" alt="" width="424"><figcaption></figcaption></figure></div>

5. Click **Save**.

## **Restrict access to taxonomies (collections)**

Access to certain taxonomies (collections) can be restricted.

Only users who have access to the taxonomy will be able to view it; other users will see an error message.

Restricting access to a taxonomy also restricts access to all descendants/sub-taxonomies of that taxonomy. All taxonomies underneath the restricted taxonomy will also effectively be restricted.

{% hint style="danger" %}
Restricting a taxonomy does not restrict access to documents tagged with that taxonomy or its descendants. Only the visibility of the taxonomy itself is restricted.
{% endhint %}

1. Select the taxonomy (collection) you want to restrict access to.
2. Check the **Restricted** box.
3. Click **Save and continue editing**.

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

3. Click **Manage restricted access groups**.
4. Check the checkbox alongside the document access groups who should have access to this document.
5. Click **Save** to apply the restrictions.

<figure><img src="/files/1hCs2JtFv5GPfDXtYWbL" 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://liieditors.docs.laws.africa/managing-documents/restricted-content.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.
