# Создание пользователя в системе управления

Для создания пользователя и назначения ему необходимых прав, подключитесь по SSH к управляющей машине и выполните следующие шаги:

1. Создайте пользователя с помощью команды:

```
ovirt-aaa-jdbc-tool user add admin2 \
--attribute=firstName=admin2 \
--attribute=email=admin2@localhost
```

2. Задайте пароль и установите срок его действия для пользователя:

```
ovirt-aaa-jdbc-tool user password-reset admin2 --password-valid-to="2030-01-01 12:00:00Z"
```

После выполнения этой команды система интерактивно запросит ввод нового пароля. Введите пароль дважды для подтверждения.

3. Для проверки вы можете посмотреть информацию о пользователе:

```
ovirt-aaa-jdbc-tool user show admin2
```

Для назначения пользователю необходимых ролей воспользуйтесь разделом: [Назначение ролей пользователям](/hostvm-server/rukovodstvo-po-administrirovaniyu/upravlenie-platformoi/roli-i-polnomochiya-dlya-upravleniya-infrastrukturoi/razresheniya-i-roli/naznachenie-rolei-polzovatelyam.md)


---

# 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://kb.pvhostvm.ru/hostvm-server/rukovodstvo-po-administrirovaniyu/upravlenie-platformoi/roli-i-polnomochiya-dlya-upravleniya-infrastrukturoi/sozdanie-polzovatelya-v-sisteme-upravleniya.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.
