> Documentation index for agents: /hcp/3.3/en/llms.txt

# Create a user and set a password

Create a user when a new employee needs to sign in to the Center web interface. The user is created without a password and without roles: you set the password right away and assign a role as a separate task.

## Before you begin

- You need the **Cluster master** role.
- The left menu has the **Provider Data Center** → **Users & Roles** item. It appears when user management is enabled on the cluster: Center installation enables it. If the item is missing, contact vStack support.
- You have a sign-in name: from 4 to 41 characters, only Latin letters, `_` and `-`. Digits, spaces and Cyrillic letters are not allowed. For example, `ivan_petrov`.
- You have a first password that meets the cluster security policy. By default, it has at least 8 characters, an uppercase and a lowercase Latin letter, a digit and a special character; it has no spaces and differs from the name. For the current requirements, see [Set the security policy: passwords and sessions](/hcp/3.3/en/users/set-security-policy/index.md).

## 1. Create the user

1. In the left menu, select **Provider Data Center** → **Users & Roles**.
2. Click **Create user** above the table on the **Users** tab. The **Create user** window opens.
3. Enter the sign-in name in the **Name** field — at least 4 characters.
4. Click **Create user** at the bottom of the window. The button is unavailable while the name is empty or contains invalid characters. The web interface shows **User \<name> (id: \<number>) has been created successfully** and opens the user page.

## 2. Set the password

1. On the user page, select **Actions** → **Set password**. The **Are you sure want to set new password for \<name>?** window opens.
2. Enter the password in the **Set new password** field. If the password does not meet the policy, the missing requirement appears under the field.
3. Click **Set**. The web interface shows **User \<name> got new password**.

## Check the result

The user is in the table on the **Users** tab of the **Users & Roles** page, and the **Status** column shows **Active**.

Give the user the name and the password. At the first sign-in, the web interface shows **Password change required**, and the user sets their own password — [Sign in to the web interface](/hcp/3.3/en/get-started/sign-in/index.md).

If the user is not created, the web interface shows a notification with the error. Check that the name is not taken and meets the rules in the "Before you begin" section.

## More

- **Full Name** (in the **Create user** window) — the name that the web interface shows in the heading of the user page. The web interface accepts the same characters as in **Name**: Latin letters, `_` and `-`, without spaces. The length is up to 64 characters.

- **Set password** for an existing user ends all their sessions. At the next sign-in, the web interface asks them to change the password again.

## Next

- [Assign a role](/hcp/3.3/en/users/assign-role/index.md) — without a role, the user has no permissions.
- [Restrict sign-in by address (CIDR) and virtual host](/hcp/3.3/en/users/restrict-user-access/index.md)
- [Roles and access](/hcp/3.3/en/users/index.md) — how permissions work.

API methods: `user-create`, `user-set-password` — in the [API reference](/hcp/3.3/en/api/methods/index.md).
