# Users and roles

> Invite people to your client in Clokeep, give each one a role, help them back in when they are locked out, and remove them when they leave.

Each person signs in with their own account. Their role decides what they can see and change.

In Clokeep, your organisation is called a client. Labels such as **Role in this client** refer to it. "Your account" on these pages is a person's own sign-in.

## Prerequisites

- The Admin role. Only an Admin sees **Users**, under **Access** in the sidebar.

## The four roles

| What you do | Admin | Operator | Viewer | Customer |
| --- | --- | --- | --- | --- |
| Open the **Servers**, **Storages**, **Plans**, **Schedules** and **Backup Runs** pages | Yes | Yes | Yes | No |
| See backups and runs | All servers | All servers | All servers | Granted servers only |
| Add and change servers, storages, plans and schedules | Yes | Yes | No | No |
| Run a backup now, stop a run | Yes | Yes | No | No |
| Restore a backup | Yes | Yes | No | No |
| Download a backup | Yes | Yes | Yes | Granted servers only |
| Create a share link | Yes | Yes | No | Granted servers only |
| Open **Shared Links** | Yes | Yes | Yes | Their own (**My Shared Links**) |
| Revoke a share link | Any link | Any link | No | Their own links |
| Delete a backup or a run | Yes | Yes | No | No |
| Open the **Audit Log** | Yes | Yes | No | No |
| Change the **Alerts** page | Yes | No | No | No |
| Choose your own alerts on your profile | Yes | Yes | Yes | Yes |
| Manage users | Yes | No | No | No |
| Create [API tokens](/docs/developers/api-token) | Yes | No | No | No |
| Change **Support access** | Yes | No | No | No |

What a Customer sees is on [Client portal access](/docs/access/client-portal). A Customer can sign in only while Clokeep has switched the client portal on. How to restore is on [Restore files, email and databases](/docs/restores/files-databases), and downloads and share links on [Download and share](/docs/restores/download-share).

Downloads work only while Clokeep has backup downloads switched on for your client. Share links also need sharing to be on. A Customer cannot use the API. See [API introduction](/docs/api-reference/introduction) for what a token can do in each role.

## Invite a user

People join your client by invitation. Clokeep emails them a link, and they choose their own password. Nobody sets or sees another person's password. The **Invite user** button on the dashboard opens the same form as **Invite user** on **Users**.

<Steps>
<Step title="Fill in who to invite">
Open **Users** and click **Invite user**. Under **Who to invite**, enter a **Name**, an **Email** and a **Timezone**. A new account shows dates and times in that timezone. The person can change it on their profile.
</Step>
<Step title="Pick the role">
Under **Access**, pick **Role in this client**. For a Customer, pick their servers under **Granted servers** now. They are granted when the invitation is accepted.

While the client portal is switched off, picking **Customer** shows that a Customer cannot sign in until it is turned on. See [Client portal access](/docs/access/client-portal).
</Step>
<Step title="Send the invitation">
Click **Send invitation**. An **Invitation sent** message names the address. The person appears under **Invitations**, below the list of users, until they accept.
</Step>
</Steps>

<Frame caption="The Users list, searched for three test users.">
![The Users list with an Operator, a Viewer and a Customer, each active](/images/docs/users-roles-users-list.png)
</Frame>

The email reads "Invitation to join" followed by your client's name. Its link works once and expires after 72 hours. The answer on the form is the same whether or not the address already has a Clokeep account.

### Accept an invitation

The person clicks **Open the invitation** in the email. The page reads "Join" followed by your client's name, and "You are invited as" followed by the role.

- **Someone new** enters **Your name**, a **Password** and **Confirm password**, and clicks **Create account**. The password needs at least 12 characters, with upper and lower case letters, a number and a symbol. Then they sign in with their email and new password.
- **Someone who already has a Clokeep account**, for example in another client, reads "An account with this email address already exists. Sign in with it and you come back here to accept." They click **Sign in to accept**, sign in, and click **Accept invitation**. Their password stays as it is.

Signed in as someone else, the page says the invitation was sent to another address. Sign out, open the link again and sign in as the invited person.

A link that was used or revoked reads "The link was already used or withdrawn. Ask the person who invited you to send a new one." An expired link reads "The link has expired. Ask the person who invited you to send a new one."

At their first sign-in, the person sets up two-factor sign-in when it is required. See [Devices and sign-in](/docs/access/devices).

### Open invitations

**Invitations**, below the list on **Users**, shows each open invitation with its email, name, role and status: **Invited**, or **Expired** once the link has expired. **Sent** and **Expires** give the times.

- **Resend** emails a new link with a new 72 hours. The earlier link stops working.
- **Revoke** withdraws the invitation. Confirm in the dialog. The link stops working, and you can invite the address again later.

Invitations, resends, revokes and acceptances are recorded in the **Audit Log**.

### When the form refuses

- The person is already in your client: "This person is already a member of this client."
- An invitation to the address is still open: "An invitation to this address is still open. Resend it from the invitations list."
- Your client has a limit on staff users. At the limit, **Admin**, **Operator** and **Viewer** are greyed out, and the field shows **Staff seat limit reached** with the count. Open invitations for a staff role hold a seat until they expire, so sending one more can fail with "Staff seat limit reached" and the count. Customers do not count toward the limit.

An invitation can also fail when it is accepted, for example when the last staff seat was taken in the meantime. The person then sees why and asks you.

### People in more than one client

One account can belong to several clients, with a different role in each. Such a person picks the client from the menu at the top of the sidebar. On your **Users** page, you change only their role and, for a Customer, their **Granted servers**, or remove them from your client.

## Change a role

Open **Users**, click the person and pick a new **Role in this client**. Click **Save changes**.

- You cannot change your own role.
- Your client always keeps one Admin. Demoting the last Admin fails with "A client needs at least one Admin. Make someone else an Admin first."
- A Customer who becomes an Admin, Operator or Viewer loses their server grants. The share links they created as a Customer stop working.
- An Admin who becomes an Operator or Viewer keeps their API tokens, which work within the new role. They can still open **API Tokens** to see and revoke them, but cannot create new ones. To withdraw their tokens yourself, see [Revoke a user's API tokens](#revoke-a-users-api-tokens).

## Change a user's email

The email is the address a person signs in with. A change takes effect only when the new address confirms it.

<Steps>
<Step title="Enter the new address">
Open **Users** and click the person. The field reads "A new address gets a confirmation link. The email changes when it is confirmed." Enter the new **Email** and click **Save changes**.
</Step>
<Step title="The link is sent">
The page shows **Confirmation link sent**: "We sent a confirmation link to the new address. The email changes when it is confirmed." The form answers the same way for every address, so it does not tell anyone which addresses already have a Clokeep account.
</Step>
<Step title="The person confirms">
The new address receives "Confirm your new Clokeep sign-in email". The person clicks **Confirm the new email** in it, then **Confirm the new email** on the page that opens. See [Change your email](/docs/access/devices#change-your-email).
</Step>
</Steps>

The current address receives "A change of your Clokeep sign-in email was requested". It names who asked, in which client, and the new address. Until the change is confirmed, the person keeps signing in with the current address.

Under the field, **Email change pending** shows the new address and when the link was sent. It offers:

- **Resend** sends a new link with a fresh 24 hours. The earlier link stops working.
- **Cancel change** asks "The link sent to the new address stops working. The sign-in email stays as it is." Click **Cancel change** to confirm, or **Keep it**.

The link works once and expires after 24 hours. An expired change reads "The link has expired; resend it or cancel the change." Entering another new address replaces the pending change, and the earlier link stops working.

- The email of someone who also belongs to another client is greyed out. Only they or Clokeep's platform staff can change it.
- While Clokeep's support team is signed in as one of your users, nobody's email can be changed.
- Platform staff change an email directly, without a link. That cancels any pending change to another address.
- Requests, resends, cancellations and confirmed changes are recorded in the **Audit Log**.

## Disable a user

Switch off **Active** on the user's page and click **Save changes**. To disable several, tick them in the list and pick **Disable** from the bulk actions. A disabled user is signed out everywhere and cannot sign in, and their [API tokens](/docs/developers/api-token#when-a-token-stops-working) stop working.

The share links the user created stop working too, whatever their role. A recipient sees "This download is temporarily unavailable. Try again later or contact the sender." The links are not revoked. **Shared Links** shows them as **Paused**, with the reason "The person who shared it is disabled. The link works again when their account is re-enabled." when you hover over the status.

Switch **Active** back on to let them in again. Their API tokens and share links work again, until they expire. To stop a link for good, revoke it on **Shared Links**.

You cannot disable your own account. You cannot disable someone who also belongs to another client. Remove them from your client instead.

## Passwords and two-factor

A user's page has no password field. Each person chooses their own password and resets it with **Forgot password?** on the sign-in page. See [Devices and sign-in](/docs/access/devices#forgotten-password).

Under **Sign-in** on the user's page:

- **Require password change at next sign-in** keeps the person on their profile page until they choose a new password. It is off unless you switch it on.
- **Exempt from two-factor authentication** lets the account sign in with a password alone. Use it only for a deliberate exception. For a lost phone, use **Reset two-factor** instead.

### Reset two-factor

When someone has lost their authenticator app and their recovery codes:

<Steps>
<Step title="Open the user">
Open **Users** and click the person.
</Step>
<Step title="Reset it">
Click **Reset two-factor** at the top right. The dialog says what happens. Click **Reset two-factor** to confirm.
</Step>
</Steps>

Clokeep removes their authenticator app and recovery codes and signs them out everywhere. At their next sign-in they set up an authenticator app again. They and your client's Admins are emailed, and the reset is recorded in the **Audit Log**. Their password does not change.

The button shows only for someone who has set up an authenticator. It does not show on your own page. For someone who also belongs to another client or is Clokeep staff, the button is greyed out. Ask Clokeep support to reset their two-factor.

## Revoke a user's API tokens

The **Users** list shows each person's number of **API tokens** in your client. To withdraw them:

<Steps>
<Step title="Open the user">
Open **Users** and click the person. When they have tokens in your client, the page shows **API tokens** with the count at the top right.
</Step>
<Step title="Revoke the tokens">
Click **API tokens**. Every token is ticked, with its abilities, when it was last used and when it expires. Untick the ones to keep and click **Revoke selected**.
</Step>
</Steps>

A revoked token stops working at once and cannot be brought back. The revoke is recorded in the **Audit Log**. Tokens the person holds in other clients stay.

## Remove a user

<Steps>
<Step title="Open the user">
Open **Users** and click the person.
</Step>
<Step title="Remove them">
Click **Remove from client** at the top right and confirm.
</Step>
</Steps>

Removing someone from your client:

- ends their role in your client and their alert choices for it
- deletes their API tokens for your client
- removes their server grants, if they are a Customer
- stops the share links they created as a Customer. Links an Admin or Operator created keep working until they expire or you revoke them on **Shared Links**.

If the account belongs to no other client, Clokeep deletes it, with its devices.

You cannot remove yourself, and you cannot remove the last Admin.

Role changes, removals and server grants are recorded in the **Audit Log**.

## Support access

Clokeep's support team can sign in as one of your users to help with a problem. Open **Settings** and choose **Support access**. Switch off **Allow our support team to sign in as your users** and click **Save changes** to refuse it. While it is off, a platform administrator can still sign in in an emergency, and you are emailed every time.

An emergency sign-in while the switch is off is the platform's decision, kept for cases such as:

- someone in your client is locked out, and no Admin of your client can help
- an incident that affects your backups and needs a look from inside your client
- a legal request that Clokeep must answer

Only a platform Super Admin can sign in while the switch is off, and every session needs a reason.

Every support session emails your active Admins and the user it signed in as, with the reason, whether the switch is on or off. An emergency session's email subject starts with "[Override]" and says that a platform administrator used an emergency override. **Recent support sessions** lists the last 50, with who signed in, as whom, why, when, whether it was an emergency override, and when it ended. Support sessions and changes to the switch also appear in the **Audit Log**.

## Next steps

<CardGroup cols="2">
<Card title="Client portal access" href="/docs/access/client-portal" icon="layers">
Let your own customers see their servers' backups.
</Card>
<Card title="Devices and sign-in" href="/docs/access/devices" icon="book">
Passwords, two-factor sign-in and the browsers on your account.
</Card>
</CardGroup>
