> 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/users.md).

# Users

## User creation

### Automatic user creation

If using any other [Authentication](/administrator-docs/server-setup/configuration/basics/authentication.md) method than **local**, users will be created and populated automatically at the time of their first connection.

### Create a user manually&#x20;

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

{% step %}
Click the **Add a new user** button (top-right corner above the table).
{% endstep %}

{% step %}
Fill out the form.

* Username (required)
* Password (required)
* Email (required)
* First Name (required)
* Last Name (required)
* Groups
* [Privileged user](#user-content-fn-1)[^1]
  {% endstep %}

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

The newly created user will appear in the Users list.
{% endstep %}
{% endstepper %}

## Editing a user

{% stepper %}
{% step %}
Navigate to **User Management** **→** **Users.**
{% 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 %}

## Deleting a user

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

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

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

***

## Group assignments

Permissions to **view, edit, create, and delete** are managed through **groups**.

For more details on how groups work, see [Groups and permissions](/administrator-docs/server-setup/configuration/basics/groups-and-permissions.md).

<figure><img src="https://461838061-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtjrEC8kt8LJiJYFBs5CS%2Fuploads%2FVIa0HEbe78BmMg21eEaD%2Fimage.png?alt=media&amp;token=995cf88a-4189-4ff9-91c6-33a850cb76f3" alt=""><figcaption></figcaption></figure>

The **Groups** column shows each group and its assignment source:

* **M**: manual assignment
* **R**: assignment from an [Managing Rules](/administrator-docs/server-setup/configuration/advanced/managing-rules.md#authentication-rule) (**User login**)&#x20;
* **L**: assignment from LDAP group synchronization

{% hint style="warning" %}
Group assignments are source-based.\
Manual edits update only **M** assignments, LDAP sync updates only **L** assignments, and login rules update only **R** assignments.
{% endhint %}

Group details can be viewed by clicking the **View group assignments** button in the **Actions** column.

<figure><img src="https://461838061-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtjrEC8kt8LJiJYFBs5CS%2Fuploads%2Fe1qC3JMm4ycaLsxR4gnR%2Fimage.png?alt=media&amp;token=c49e4d62-f20a-4955-8513-4f04a8ca01c1" alt=""><figcaption></figcaption></figure>

[^1]: Grants unrestricted access. This overrides all other permission settings.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
