> For the complete documentation index, see [llms.txt](https://documentation.ocsinventory-ng.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ocsinventory-ng.org/administrator-docs/server-setup/configuration/basics/groups-and-permissions.md).

# Groups and permissions

<figure><img src="https://461838061-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtjrEC8kt8LJiJYFBs5CS%2Fuploads%2Fip4OcVlSPiWiQf01dDst%2Fimage_2026-04-22_143748550.png?alt=media&amp;token=f0e29fed-b770-4ba7-a45e-d78f0c2f9ad6" alt="Groups view"><figcaption><p>Groups view</p></figcaption></figure>

Groups define permissions shared by multiple users. Each OCS component has 4 associated permissions: **Add**, **edit**, **delete**, **view**.

3 basic groups are created during the installation:&#x20;

* **Super-admin**: Full access (add, edit, delete, view) to all components
* **Admin**: Add, edit, and view access to all components
* **User**: View-only access to all components

{% hint style="info" %}
A group can be assigned during user creation, when editing an existing user or by [Managing Rules](https://documentation.ocsinventory-ng.org/administrator-docs/server-setup/configuration/advanced/managing-rules.md#creating-a-rule).
{% endhint %}

{% hint style="danger" %}
Users with the `change_user_permission` permission can perform the following actions **on their own account** and **on every other user account**:

* Change permission levels.
* Change passwords and other user details.
* Grant Django superuser access.
  {% endhint %}

***

## Create a user group

{% stepper %}
{% step %}
Navigate to **User Management** **→** **Groups.**
{% endstep %}

{% step %}
Click the **Add a new group** button (top-right of the table).
{% endstep %}

{% step %}
Fill out the form.

* **Name** (required)
* **Permission** **matrix**
  {% endstep %}

{% step %}
Click **Add**.

The newly created group will appear in the Groups list.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
You can also duplicate an existing group.\
Click the **Duplicate** icon at the top of the table, select a group from the drop-down, enter a new group name, then click **Duplicate**.
{% endhint %}

## Edit a group

{% stepper %}
{% step %}
Navigate to **User Management** **→** **Groups.**
{% endstep %}

{% step %}
Click the **pencil** icon in the Action column for the entry you wish to edit.
{% endstep %}

{% step %}
Edit the form.
{% endstep %}

{% step %}
**Save** your changes.
{% endstep %}
{% endstepper %}

## Delete a group

{% stepper %}
{% step %}
Navigate to **User Management** **→** **Groups.**
{% endstep %}

{% step %}
Click the **trash** icon in the Action column for the entry you wish to delete.

{% hint style="info" %}
Default groups cannot be deleted.
{% endhint %}
{% endstep %}

{% step %}
Confirm deletion.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.ocsinventory-ng.org/administrator-docs/server-setup/configuration/basics/groups-and-permissions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
