# Organizations

Keboola projects are grouped into **organizations**. Each organization is assigned to a **maintainer** (either Keboola or
Keboola Partner), who is also primarily responsible for L1 support unless agreed otherwise.
[Keboola projects](https://help.keboola.com/management/#project-status), organizations,
and maintainers are therefore organized into a hierarchy:

![Screenshot - Project Hierarchy](https://help.keboola.com/management/organization/organizations-maintainers.png)

Although projects, organizations, and maintainers form a hierarchy, their users do not. Each unit has a completely
independent set of users. That means organization users are not automatically users of the projects
within organizations and -- vice-versa -- project users are not automatically users of the organization.
This distinction is important, for example, when [sharing buckets](https://help.keboola.com/catalog/#sharing-types).

Depending on your contract details and permissions, the `Organizations` feature may or may not be available to you.

![Screenshot - Organizations](https://help.keboola.com/management/organization/organization-1.png)

*Note: If you do not see the `Organizations` section in your account settings,
you are not a member of any organization.*

To see the organization a project is assigned to, go to **Users & Settings** — the tab
[**Settings**](https://help.keboola.com/management/project/).
<br> To see all organizations you are a member of, go to [**Account Settings**](https://help.keboola.com/management/account/).

![Screenshot - Project Settings](https://help.keboola.com/management/organization/project-detail.png)

## Organization Admins
An **organization admin** (also referred to as an organization member) is a user who has been explicitly added to an organization's membership list. This role is distinct from project-level roles and provides elevated permissions across all projects within the organization.

### What Organization Admins Can Do
Organization admins have the following capabilities:

- **Project Access** — Join and leave any project within the organization without requiring an invitation. This makes it easy for organization admins to provide support or oversight across multiple projects.
- **Create New Projects** — Set up new Keboola projects within the organization.
- **Manage Data Sharing** — Share and manage [shared buckets](https://help.keboola.com/catalog/#sharing-types) across projects in the organization. Organization admins can share buckets to all organization members and manage bucket sharing settings.
- **Manage Organization Members** — Invite new members to the organization and remove existing members.
- **Organization Settings** — Configure organization-wide settings such as [Auto Join](https://help.keboola.com/management/organization/#auto-join) and [MFA requirements](https://help.keboola.com/management/organization/#require-mfa).
- **Billing Access** — View and edit billing details for the organization.
- **Support Access Control** — Allow or restrict [Keboola Support](https://help.keboola.com/management/support/#require-approval-for-support-access) from joining projects in the organization.
- **Development Branches** — In projects with [protected default branches](https://help.keboola.com/components/branches/), organization admins have additional permissions to manage development branches even without a specific project role.

### Organization Admin vs. Project Roles
It is important to understand that organization admin status is separate from [project user roles](https://help.keboola.com/management/project/users/#user-roles). Being an organization admin does not automatically grant you a role within individual projects. However, organization admins can join any project in the organization at will.

When working within a project, your permissions are determined by your project role (Admin, Share, Guest, etc.), not your organization admin status. The organization admin role primarily provides the ability to access projects and manage organization-level resources like shared buckets.

### Who Should Be an Organization Admin
We recommend keeping the number of organization admins small (typically 2-4 people) and limiting this role to:

- Data platform administrators responsible for managing the Keboola environment
- Team leads who need to oversee multiple projects
- Users who need to manage data sharing across projects

For regular project work, users should be added directly to the relevant projects with appropriate [project roles](https://help.keboola.com/management/project/users/#user-roles) rather than being made organization admins.

## Manage Members
All organization members are full members and as such can **add and remove** other members.
As mentioned above, being a member of a project in an organization does not make you automatically
a member of the organization. That means each organization member has to be added or removed manually.
The same goes for maintainers.

![Screenshot - Organizations Users](https://help.keboola.com/management/organization/organization-2.png)

Newly added organization members get an email confirmation, and if without a Keboola account,
they are [invited to create one](https://help.keboola.com/management/project/users/#new-user).
Removed members receive an email notification.

Apart from adding and removing other members, each organization member is also allowed to do the following:

- Leave the organization; there is no way back without someone else's invitation.
- Leave and re-enter all existing projects in the organization.
- View and edit billing details.
- Manage [shared buckets](https://help.keboola.com/catalog/#sharing-types).
- Create [new projects](https://help.keboola.com/management/organization/#manage-projects).
- Change [organization settings](https://help.keboola.com/management/organization/#organization-settings).
- Allow [Keboola Support](https://help.keboola.com/management/support/#require-approval-for-support-access) to join your projects.

## Manage Projects
To create a new project, click the **New Project** button, enter the project's name and select a **project template**.
Project templates differ mainly in the project expiration time. Some may be subject to billing.

![Screenshot - Organizations Projects](https://help.keboola.com/management/organization/organization-3.png)

## Organization Settings

### Auto Join 
Some organizations may prefer to explicitly approve [access](https://help.keboola.com/management/project/users/#who-can-access-project) 
to their project by the [support team](https://help.keboola.com/management/support/#require-approval-for-support-access). 
To disable Auto Join and require approval for support accounts, click the **Change** link to modify the settings:

![Screenshot -- Auto Join On](https://help.keboola.com/management/organization/organization-4.png)

Uncheck the **Auto Join** checkbox and **Update** the settings.

![Screenshot -- Auto Join Change](https://help.keboola.com/management/organization/organization-5.png)

The description for support access will reflect the current setting.

![Screenshot -- Auto Join Off](https://help.keboola.com/management/organization/organization-6.png)

### Require MFA
It is possible to set the [Multi-factor Authentication](https://help.keboola.com/management/account/#multi-factor-authentication) (MFA) requirement
for all projects in the organization. When MFA is required for an entire organization, users without MFA enabled
can still log in to Keboola, but they cannot access any projects in the organization. The list of users
without MFA is shown when enabling the MFA requirement for the entire organization.

![Screenshot -- Require MFA](https://help.keboola.com/management/organization/organization-7.png)

The organization page will show that MFA is required:

![Screenshot -- MFA Required](https://help.keboola.com/management/organization/organization-8.png)

## Connect GitHub
Connect your GitHub organization to let [dbt transformations](https://help.keboola.com/transformations/dbt/transformation/#dbt-project-repository),
[Custom Python](https://help.keboola.com/components/applications/custom-python/#git-configuration), and [Apps](https://help.keboola.com/data-apps/getting-started/)
clone private repositories through the Keboola GitHub App. Configurations then store no personal access token or SSH key;
Keboola gets a short-lived token from the App each time it clones the repository.

Keboola has already registered the GitHub App for your stack. You only install it on your GitHub organization
and connect that GitHub organization to your Keboola organization.

You need to be both an organization admin in Keboola and an owner of the GitHub organization.

1. Open the **GitHub** tab of your organization: `https://connection.<stack>/control/organizations/<organization-id>?tab=github`.
2. Click **Install GitHub App** and install the App on your GitHub organization. Select the repositories
   Keboola can clone, or all repositories. GitHub shows the permissions the App asks for
   (see [What the App can access](https://help.keboola.com/management/organization/#what-the-app-can-access)).
3. Click **Connect GitHub organization**, enter a name, and leave **GitHub Enterprise host** empty for github.com.
4. Click **Continue to GitHub**, sign in, and authorize the App.

The connected GitHub organization appears in the list, with the GitHub account and the user who connected it.
Click **Disconnect** to remove the connection. Configurations that use it then fail to clone the repository.

If the connection fails, the tab shows why, for example when the App is not installed on the GitHub organization
or when you are not its owner. When the App is installed on several GitHub organizations you own,
pick the one to connect.

### What the App can access

When you install the App, GitHub asks you to approve these permissions:

| Permission | Access |
|---|---|
| Repository permissions → **Contents** | Read and write |
| Repository permissions → **Pull requests** | Read and write |
| Organization permissions → **Members** | Read-only, used only while you connect, to check that you own the GitHub organization |

The tokens Keboola gets for dbt transformations, Custom Python and Apps are read-only. Each token covers
the one repository a configuration uses, can only read its contents, and expires after about an hour.
Keboola stores no GitHub credentials of the person who connected the organization.

The App reaches only the repositories you select on GitHub. To limit it, choose **Only select repositories**
when you install the App and pick the repositories your configurations use. You can change the selection later
in your GitHub organization's settings, under **GitHub Apps**. A configuration whose repository is not selected
fails to clone it.

If your GitHub organization installed the App before it asked for write access, GitHub asks an owner of
the GitHub organization to approve the new permissions. Until an owner approves them, the App keeps read-only
access to the repositories, and cloning works as before.
