> ## Documentation Index
> Fetch the complete documentation index at: https://teamcopilot.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add a user and setup authentication

> See how to configure auth for teammates

## Adding a user

Before anyone can sign in, they need to be added to your instance of TeamCopilot using an admin command: `npx teamcopilot create-user` from the same directory where you initialized TeamCopilot.

This command will ask you for the user's:

* Email
* Name
* Role (Engineer or User)
* Temporary password

The temporary password you set here can be used by the user to login, and immediately after that, TeamCopilot will ask the user to set a new password.

## About User roles

There are two roles:

* User
* Engineer

Engineers can do everything that users can, but they can also approve custom skills and workflows created by anyone in the team.

## Other admin commands

The CLI also includes:

* `npx teamcopilot change-user-role`
* `npx teamcopilot delete-user`
* `npx teamcopilot reset-password`
* `npx teamcopilot rotate-jwt-secret`

Use `change-user-role` to promote a user to Engineer or demote them back to User. Use `rotate-jwt-secret` only when you want to force everyone to sign in again.
