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

# Members and Roles

> Control who can see, clone, push to, and manage your organizations, projects, and repositories.

Entire has three access levels:

* An **organization** - This is what owns the projects.
* A **project** - This is what owns repositories.
* A **repository** - This is where you have your code.

You give each person a role at one or more of these levels. If you add someone to an organization or project, it automatically gives them access to everything that it owns.

## Who Owns a Project

When you create a project, you choose its owner: an organization, or your own account. You can't change the owner later.

| | Owned by an organization | Owned by your account |
| - | - | - |
| Who can create it | An `owner` or `admin` of the organization | Only you |
| Who can manage it | Organization owners and admins, and project `admin`s | You, and project `admin`s |
| Who can push and clone | Organization owners and admins, and anyone whose project or repository role allows it | You, and anyone whose project or repository role allows it |
| Who can see it | Every organization member, and anyone with a project role | You, and anyone with a project role |

Use an organization for work you share with a team. Its owners and admins can manage the project without a project role, and its members can find it. Use your own account for personal projects. Nobody else can see one until you give them a project role. Someone with only a repository role can use that repository, but can't see the project.

> [!NOTE]
>
> A service account can't own a project. Also, projects that hold repositories mirrored from GitHub work differently. Entire creates them for you, and GitHub decides who can use them. See [GitHub Mirrors](#github-mirrors).

## Roles

### Organization Roles

| Role | What the person can do |
| - | - |
| `owner` | Everything an `admin` can do. Only owners can make someone an owner, change an owner's role, or remove an owner. |
| `admin` | Manage the organization and its members. Manage, push to, and clone every repository in every project the organization owns. |
| `member` | See the organization's projects and the repositories in them. Can't clone or push until they also get a project or repository role. |

### Project Roles

| Role | What the person can do |
| - | - |
| `admin` | Manage the project, its members, and every repository in it. Push to and clone every repository in the project. |
| `writer` | Push to and clone every repository in the project. |
| `reader` | Clone every repository in the project. |

### Repository Roles

Repository roles are the same as project roles, but cover one repository only.

| Role | What the person can do |
| - | - |
| `admin` | Manage the repository and its members. Push and clone. |
| `writer` | Push and clone. |
| `reader` | Clone. |

## How Access Passes Down

* Organization owners and admins get full access to every project the organization owns and every repository in those projects. You don't need to add them anywhere else.
* Organization members can see the organization's projects and the list of repositories in them, but get no access to the code. Give them a project or repository role so they can clone or push.
* A project role covers every repository in the project, including repositories added later.
* A repository role covers that one repository.

Roles only add access. When someone holds roles at more than one level, they get the most access any of those roles allows. A repository role can't take away access that someone already has from the organization or project.

To limit someone to a few repositories, make them an organization `member`, then give them a role on each of those repositories, and no project role.

`entire repo grant list` shows each role held on the repository itself or on its project, and which project it comes from. It also lists the organization or account that owns the project, but not the organization's owners and admins one by one. You need an `admin` role on the repository, or the right to manage its project, to run it.

## Who Can Add People

* To add someone to an organization, you need to be an organization `owner` or `admin`. Only owners can add someone as an `owner`.
* To add someone to a project, you need to be a project `admin`, the account that owns the project, or an `owner` or `admin` of the organization that owns it.
* To add someone to a repository, you need to be a repository `admin`, or someone who can add people to its project.

## Add People on entire.com

### Organization

1. Find the organization on [entire.com/organizations](https://entire.com/organizations) and select it.
2. In the sidebar under **Organization**, select **Access**.
3. Select **Add members**, enter their email addresses, and choose a role.

Each person gets an invitation by email and joins the organization once they accept it.

[Add members to an organization on entire.com](https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/a3bcf739117ca64c3318e70c3b47acaa/iframe)

> [!NOTE]
>
> If your organization requires single sign-on (SSO), you can't invite people. They join through your identity provider instead. You also can't add members to an organization linked to GitHub (see [GitHub Mirrors](#github-mirrors)).

### Project

1. Find the project on [entire.com/projects](https://entire.com/projects) and select it.
2. In the sidebar under the project, select **Settings**, then **Access**.
3. Select **Add members** and choose a role for each person.

People who are already members of the organization that owns the project get access straight away. Anyone else gets an invitation and has no access until they accept it.

### Repository

This applies to repositories hosted on Entire. Access to a repository mirrored from GitHub follows GitHub (see [GitHub Mirrors](#github-mirrors)).

1. Open the repository.
2. In the sidebar under the repository, select **Settings**, then **Access**.
3. Select **Add members** and choose a role for each person.

Members of the project or its organization get access straight away. Anyone else gets an invitation and has no access until they accept it.

## Add People With the CLI

Invite someone to an organization by email:

```bash theme={null}
entire org invite send acme --email dev@example.com --role member
```

Once they have accepted, give them a project or repository role:

```bash theme={null}
entire project grant add widgets github:alice --role writer
entire repo grant add /et/widgets/web github:alice --role reader
```

Check who has access:

```bash theme={null}
entire org grant list acme
entire project grant list widgets
entire repo grant list /et/widgets/web
```

See [grant](https://docs.entire.com/cli-reference/grant.md) and [org](https://docs.entire.com/cli-reference/org.md#entire-org-invite) for every command and flag.

## GitHub Mirrors

Everything above applies to organizations, projects, and repositories you create on Entire, with paths like `/et/widgets/web`. When you [mirror a repository from GitHub](https://docs.entire.com/guides/repositories/mirrors.md), with a path like `/gh/acme/web`, GitHub decides who has access, and you can't change it on Entire.

The first time someone mirrors a repository from a GitHub organization, Entire creates an Entire organization linked to that GitHub organization, and a project owned by it that holds the organization's mirrored repositories. Repositories mirrored from a personal GitHub account go into a project owned by that person's Entire account.

| | Created on Entire (`/et/`) | Mirrored from GitHub (`/gh/`) |
| - | - | - |
| Organization members | Owners and admins add and remove them on Entire | You can't add or remove members on Entire. GitHub organization membership doesn't make someone a `member`, `admin`, or `owner` of the Entire organization. |
| Organization billing | Organization owners and admins | GitHub organization admins |
| Who can find the project | Organization members, and anyone with a project role | GitHub organization members. Each person sees only the repositories they can access on GitHub. |
| Project roles | Project admins and organization owners and admins add them | You can't add them, on the mirrored project or on any other project the linked organization owns |
| Repository access | Entire roles | GitHub collaborator permissions. Read access lets someone clone, and write access lets them push too. |
| Adding repositories | Create them in the project | Mirror them from GitHub. You can't create a repository in a mirrored project. |
| Public or private | Change it with `entire repo edit --visibility` | Follows the GitHub repository |

Things that often catch people out:

* **GitHub roles don't give Entire roles.** Being an admin of a GitHub organization or repository doesn't make you an `owner` or `admin` of any Entire organization or project. GitHub organization admins can manage billing for the linked Entire organization and install plugins on its mirrored project. GitHub repository admins can see who has access to the mirror and change its mirror settings. Neither can add people.
* **You can't add people to a mirrored organization, project, or repository on Entire.** This is true even for admins. `entire project grant add` on a mirrored project fails with `permission denied`, or for someone who can manage the project, with `project access on a GitHub-mirrored project is a read-only projection of GitHub; grants are managed by the source`. Adding a member to a linked organization fails with `org membership on a GitHub-linked org is a read-only projection of GitHub; members are managed by the source`. `entire repo grant add` takes only `/et/` repositories.
* **You can't delete an organization linked to GitHub.** Deleting it fails with `org is linked to a GitHub org and cannot be deleted`.

To change who can use a mirror, change the repository's collaborators on GitHub. See [Mirror Access and Permissions](https://docs.entire.com/guides/repositories/mirror-access-and-permissions.md). To manage people on Entire yourself, create a project on Entire, owned by your account or by an Entire organization that isn't linked to GitHub (see [Projects](https://docs.entire.com/guides/configuration/projects.md)). Or ask an `owner` or `admin` of such an organization to give you a role.

## Public Repositories

A repository made public with `entire repo edit REPO --visibility public` can be cloned by anyone signed in to Entire, whatever their role. Pushing still needs a `writer` or `admin` role, and managing it needs an `admin` role. See [repo](https://docs.entire.com/cli-reference/repo.md).

## Continue With

> [card] [grant](https://docs.entire.com/cli-reference/grant.md)
>
> See the command syntax for organization, project, and repository grants.

> [card] [Projects](https://docs.entire.com/guides/configuration/projects.md)
>
> Create a project and choose its owner and region.

> [card] [Mirror Access and Permissions](https://docs.entire.com/guides/repositories/mirror-access-and-permissions.md)
>
> Learn how mirror access follows GitHub collaborators.

> [card] [Service Accounts](https://docs.entire.com/guides/configuration/service-accounts.md)
>
> Give automation its own project and repository roles.
