# Users Your company's users in Ritevo: inviting people, roles, statuses, deactivating users instead of deleting them, and passwords. Everyone in your company works on their own account, so the change history and messages show who did what. > **Good to know:** Only an **Administrator** can invite, rename, deactivate and activate users. Others see the list but cannot change it. ## Where to find it Click the gear icon at the bottom of the left menu and choose **Users**. The list shows: - **Status filters** - **Active** (default), **Awaiting activation**, **Deactivated** and **All**, with the number of people in each. - **Search** - by name, e-mail address or id. - **Table** - name, e-mail and id, role, status, last login (or **Not logged in yet**) and the date added. The actions for the administrator are at the end of the row. ![User list with search, status filters and the Add user button](https://ritevo.com/docs/general/en-users-list.webp) ## Roles - **Administrator** (API: "Administrator" = `ADMIN`; value in `role`) - manages users and has access to everything. This is the account that created the company. - **User** (API: "User" = `USER`; value in `role`) - works in the app (orders, messages, products, integrations) but does not manage users. ## Adding a user You do not create a new person with a password - you send them an invitation and they set the password themselves. That way nobody else knows their password, and the e-mail address surely works. 1. On the **Users** list click **Add user**. 2. Enter the e-mail address and the account name - you will see this name next to their changes and assignments. 3. Click **Send invitation**. The user shows up on the list with the status **Awaiting activation**. 4. The invited person gets an e-mail with a **Set password** button. Once the password is set, they get the status **Active** and can log in. ![Add user window with the Email and Account name fields](https://ritevo.com/docs/general/en-users-add.webp) > **Good to know:** The invitation link works for 24 hours. If nobody uses it, we delete the invitation and the e-mail address is free again. You can also resend the invitation. ## Statuses - **Active** - can log in and work. Only active users can be assigned, for example to a message thread. - **Awaiting activation** - the invitation is sent, but the password is not set yet. This person cannot log in. - **Deactivated** - the administrator deactivated the account. They cannot log in, but stay in the history and in existing assignments. In the API the status is two user fields: `enabled` and `active`. `enabled: false` - invitation not accepted (Awaiting activation), `enabled: true` and `active: false` - Deactivated, both `true` - Active. Only a user with `enabled: true` and `active: true` can be assigned (e.g. `assignedUserId` in messages). ## An invitation that is waiting - **Resend invitation** - sends a new e-mail with a link valid for another 24 hours. The previous link stops working. - **Delete invitation** - deletes a person who has not set a password yet. The link in the e-mail stops working and the e-mail address is free again. ## Deactivating a user Someone who has logged in at least once is not deleted - you deactivate them. Their name stays in the change history, in the audits and on assigned threads, so you always know who did what. - **Deactivate** - after you confirm, the user loses access at once - also if they are working in the app right now or use the API. When they try to log in, they see that the account is deactivated and that they should contact the administrator. - **Activate** - restores access. The user logs in with their existing password. - You cannot deactivate your own account. The administrator account is protected - it cannot be deactivated, deleted or invited again. ![A deactivated user on the list with the Activate icon](https://ritevo.com/docs/general/en-users-deactivated.webp) ## Passwords - **Everyone sets their own password** - when accepting the invitation. The administrator does not know other people's passwords and cannot change them. - **Forgotten password** - on the login page click **Forgot password?** and enter your e-mail. The link to set a new password works for one hour. - A password has 8 to 50 characters. - An account that is deactivated or awaiting activation does not get a password link. ## User limit A company can have up to 100 users. Active users and those awaiting activation count - deactivated users do not take a seat. When the limit is full, the **Add user** button disappears and a deactivated person cannot be activated until you free a seat. ## Activity history Logins, logouts, invitations, renames, deactivating and activating users and changes of API connections are in **Audits** (the gear icon at the bottom of the menu). Each entry shows the person, the time and whether the attempt succeeded. Audit actions (`action`): `USER_REGISTERED`, `USER_LOGIN`, `USER_LOGOUT`, `USER_INVITED` (invitation sent or resent), `USER_UPDATED` (renamed), `USER_REMOVED` (invitation deleted), `USER_DEACTIVATED`, `USER_ACTIVATED`, `TOKEN_REFRESHED`, `OAUTH_APP_CREATED`, `OAUTH_APP_SECRET_REGENERATED`, `OAUTH_APP_DELETED`, `OAUTH_APP_CONNECTED`, `OAUTH_APP_CONNECT_DENIED`, `OAUTH_APP_CONNECT_USER_INACTIVE`, `OAUTH_APP_CONNECT_OTHER_COMPANY`, `OAUTH_APP_CONNECT_FAILED`, `OAUTH_APP_AUTH_FAILED`, `OAUTH_APP_REFRESH_USER_INACTIVE`, `OAUTH_APP_REFRESH_FAILED`, `OAUTH_APP_DISCONNECTED` (API connections - `description` holds the connection name). `success: false` - the attempt failed, e.g. a wrong password. ## What is not there - There are no roles other than Administrator and User, and no permissions for selected parts of the app. - You cannot change a user's e-mail address - invite the person at the new address and deactivate the old account. - One e-mail address can have only one Ritevo account, also across companies. Letter case does not matter - Jan@company.com and jan@company.com are the same address. ## Users through the API Endpoints under `/company/users`: `GET` (list, any user of the company), `GET /{userId}`, `POST` (invitation, ADMIN only; body `email` (up to 50 characters), `accountName` 2-100 characters, `language` `pl`/`en`), `POST /{userId}/invitation?language=` (resend), `PATCH /{userId}` (body `accountName`), `PATCH /{userId}/deactivate`, `PATCH /{userId}/activate`, `DELETE /{userId}` (only a not accepted invitation). User fields: `id`, `email` (stored in lower case), `accountName`, `role` (`ADMIN`, `USER`), `enabled`, `active`, `lastLoginAt`, `createdAt`. Errors are a ProblemDetail with a `code` field: `USER_NOT_FOUND` (404), `USER_ALREADY_EXISTS` (409), `FORBIDDEN_OPERATION` (403), `CANNOT_DEACTIVATE_USER` (400), `ADMIN_ACCOUNT_PROTECTED` (400 - the administrator cannot be deactivated, deleted or invited again), `INVITATION_ALREADY_ACCEPTED` (400), `LIMIT_EXCEPTION` (422). History: `GET /company/audit-log` with the filters `actions`, `userIds`, `success`, `eventSources`, `createdAtFrom`, `createdAtTo`. Current paths and fields are in Swagger: https://api.ritevo.com/api/v1/api-docs. --- All help in one file: https://ritevo.com/llms-full.txt. Help map with links to every page: https://ritevo.com/llms.txt.