# Project Users

To be able to work with Keboola, each user needs to have the following:

- Platform-wide Keboola account
- Access to a specific project

Each user is, system-wide, **identified by their email address**.
This means that you need to enter correct email addresses for existing users.
Be especially careful about company aliases; from Keboola's point of view, they are different users.

All operations performed by a user are technically done using the
[master token](https://help.keboola.com/management/project/tokens/#master-tokens). This is important for
[tracing operations](https://help.keboola.com/management/project/tokens/#token-events) done by that user.

## User Roles

There are the following user roles available:

- **Share** – the user has full administrative access to the project, including sharing data in the [Data Catalog](https://help.keboola.com/catalog/).
    _Note: The Share role can only be granted by an [organization member](https://help.keboola.com/management/organization/)._
- **Admin** – the user has full administrative access to the project.
- **Guest** – the user can access all project data, but **cannot** 
    - change project settings _(name, description, etc.)_;
    - delete the project;
    - manage users;
    - manage [API tokens](https://help.keboola.com/management/project/tokens/);
    - permanently remove configurations in [trash](https://help.keboola.com/components/configurations/#delete-and-restore-a-configuration);
    - create an external authorization link; and
    - change the name, the schedule, and the disabled status of an existing flow.
- **ReadOnly** – the user can view all project data, but **cannot**
    - create, modify or delete configurations of [components](https://help.keboola.com/components/), [flows](https://help.keboola.com/flows/) and [transformations](https://help.keboola.com/transformations/);
    - run any components, flows and transformations;
    - import and modify data in [Storage](https://help.keboola.com/storage/);
    - use [Data Catalog](https://help.keboola.com/catalog/);
    - change project settings _(name, description, etc.)_;
    - create an external authorization link;
    - delete the project;
    - manage users; and
    - manage [API tokens](https://help.keboola.com/management/project/tokens/).
- **Developer** – the user can write to any development branch but **cannot edit** the production branch.
- **Reviewer** – the user extends the Developer role with the right to **approve** merge requests (except for their own requests).
- **Production Manager** – the user has the right to
    - **merge** the merge requests;
    - **manage** configuration state in the production branch;
    - **link/unlink**  a bucket;
    - **manage** production credentials (in variable storre);
    - **manage** triggers;
    - **run** jobs;
    - **manage** notifications (for flows). However, they
    - **cannot make changes** in development branches (edit configurations, etc.).

**Notes:**<br />*The ReadOnly role is currently available on all stacks for projects with feature `queuev2`.*<br />*The Developer, Reviewer and Production Manager roles are currently only available when the feature of Governed Change Management is active.*<br />*If the Production Manager is also an Organization Admin, they can invite new members to the project and assign them the Production Manager role.*

## Inviting User
If you want to add a new user to the project, go to **Users & Settings** in the project and
click the **Invite User** button:

![Screenshot -- User list](https://help.keboola.com/management/project/users/users-list-1.png)

Enter the user's email and grant them a role in the project:

![Screenshot -- User list](https://help.keboola.com/management/project/users/invite-project-1.png)

The user is listed among the project users with a pending invitation.

![Screenshot -- User list with invitation](https://help.keboola.com/management/project/users/users-list-2.png)

If you delete an invitation before it is accepted by the invitee or if the invitee declines it, 
they will never become a member of the project.
The steps that follow an invitation differ depending on whether the user already exists or is new.

### New User
If the user does not have a platform-wide Keboola account yet, their name in the user list will be
labelled as `Not activated yet`:

![Screenshot -- User invited](https://help.keboola.com/management/project/users/users-list-4.png)

They will receive an invitation email:

![Screenshot -- Invitation email to create account](https://help.keboola.com/management/project/users/invite-project-2.png)

When they click the **Activate Your Account** button, they will be taken to the activation form:

![Screenshot -- Activation form](https://help.keboola.com/management/project/users/register-2.png)

After filling it in, the [login form](https://help.keboola.com/management/project/users/#authentication) appears.
They can immediately login to Keboola and see their invitation to the project they have been invited to.
Once they accept it, you will see their chosen screen name in the user list:

![Screenshot -- User joined](https://help.keboola.com/management/project/users/users-list-3.png)

### Existing User
If the added user already has a Keboola account, you will see their screen name in the user list right away:

![Screenshot -- User joined](https://help.keboola.com/management/project/users/users-list-2.png)

***Note:** If you intend to invite an existing user, it is a good idea to verify the screen name.
If you see `Not activated yet` instead of the screen name, it means that there is no Keboola account associated with the email address.*

The user will receive an email invitation:

![Screenshot -- Invitation email to create account](https://help.keboola.com/management/project/users/invite-project-3.png)

The link leads to the [account settings](https://help.keboola.com/management/account/) where the user can see their pending invitations:

![Screenshot -- Invitations on account settings](https://help.keboola.com/management/project/users/invitation-2.png)

Invitations are also shown on the welcome screen with the project list:

![Screenshot -- Invitations on project list](https://help.keboola.com/management/project/users/invitation-1.png)

Until the user accepts the invitation, they are not allowed to enter the project:

![Screenshot -- Project access denied](https://help.keboola.com/management/project/users/invitation-3.png)

Once the invitation is accepted, the user becomes a member of the project:

![Screenshot -- User joined](https://help.keboola.com/management/project/users/users-list-3.png)

## Changing User Role
You can change the role of an existing project member directly from the user list. Click the action menu (three dots)
next to the user and select **Change Role**:

A modal dialog will appear, allowing you to select a new role from the available options. The available roles depend
on your project setup:

- **Standard projects** — Share, Admin, Guest, and Read Only.
- **Governed Change Management projects** — Production Manager, Developer, and Reviewer.

**Who can change roles:**

- In standard projects, users with the **Admin** or **Share** role can change roles of other users.
  The **Share** role can only be assigned by an [organization member](https://help.keboola.com/management/organization/).
- In projects with Governed Change Management active,
  the **Production Manager** can change roles of other users.

*Note: Changing roles is not available when SAML-based role management is enabled.*

## Removing User
You may remove a user from a project by clicking the **Remove** button in the user list.
The user will receive a notification email about being removed from the project.
The removal is effective immediately. Any following operations will
be unauthorized, regardless of whether the user will be logged in at the moment or not.
Removing a user from a project has no effect on the data in it;
everything the particular user did there stays untouched.
You can also leave a project voluntarily by pressing the **Leave** button.

**Important:** However, you will not be able to re-join the project unless
someone invites you again or unless you are a member of the project [organization](https://help.keboola.com/management/organization/).

## Who Can Access Project
It is important to understand the concept of [organizations](https://help.keboola.com/management/organization/) to asses what persons might be able to
access a specific project. For a quick overview, here is a complete list of persons able to access a given project:

- Active users of the project (listed on the *Users* tab of the *Settings* page)
- Users invited to the project (listed on the *Users* tab of the *Settings* page with the note **Invited**)
- Users of the [organization](https://help.keboola.com/management/organization/) to which the project belongs
- Users of the [maintainer](https://help.keboola.com/management/organization/) to which the project organization belongs, provided that [**Auto Join**](https://help.keboola.com/management/support/#require-approval-for-support-access) is **enabled**
- Keboola support staff, provided that [**Auto Join**](https://help.keboola.com/management/support/#require-approval-for-support-access) is **enabled**

No other user can enter the project. If Auto Join is disabled, maintainer users and Keboola Support staff can
see the name of the project and request access which must be approved by a current member of the project.

## Authentication
There are three options for authenticating a Keboola account:

- Google account
- Combination of an email address and the associated password
- Combination of an email address and the associated password with multi-factor authentication

The options are described in detail below.

### Google Account
If you have a Google Account (Gmail), you can use it to authenticate to Keboola.
Click the respective button on the login page:

![Screenshot -- Login Page](https://help.keboola.com/management/project/users/login-1.png)

Then follow the Google instructions to authorize Keboola.
No configuration in Keboola is necessary to enable Google Account login.
Bear in mind, however, that the Google Account email must match the email you are using in Keboola.

### Multi-Factor Authentication
Enable multi-factor authentication (MFA) in your [account settings](https://help.keboola.com/management/account/#multi-factor-authentication).
You can review the state of MFA for any user in the user list:

![Screenshot -- User joined](https://help.keboola.com/management/project/users/users-list-3.png)

## Authorization
All users listed on the **Users & Settings** page are project administrators.
This means they can perform all operations within the project. If you need to limit authorization
to certain operations or data, there are two options to choose from:

1. Split the project into multiple projects.
2. Use [Storage Tokens](https://help.keboola.com/management/project/tokens/) instead of full user accounts.
