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

# Users

> Sign in with an email code, invite your team as owners or members, change roles, remove people, and get back in with a one-time link when email is down.

Members are the people who can sign in to your GitAudience instance. There are no passwords: you sign in with a 6-digit code sent to your email address. Each member is an owner or a member, and that role applies to every project of the instance.

You manage members in Settings › **Users**.

## Roles

| Role       | What it can do                                                                                                                                                                       |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Owner**  | Everything: add and delete projects, connect GitHub Apps, publish the configuration, run sync, review enrichments, correct people, manage MCP tokens, and invite and manage members. |
| **Member** | Read everything in finished projects, write notes, add labels, save segments, export to CSV, and check the free limit.                                                               |

In detail:

| Action                                                                                                                                      | Owner | Member |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------ |
| See projects, reports, the Stargazers list, person pages, notes and emails; search by email                                                 | ✓     | ✓      |
| Read the published configuration, its draft and its versions, the Enrichment page, the compare repositories and the project's MCP tokens    | ✓     | ✓      |
| Write notes, add labels, save segments                                                                                                      | ✓     | ✓      |
| Check the free limit again (**Check now**)                                                                                                  | ✓     | ✓      |
| Export to CSV, with or without emails                                                                                                       | ✓     | ✓      |
| Validate, hide or correct an enrichment to review; correct a person; remove an email address                                                | ✓     |        |
| Mark a person as suspect, relaunch a person's enrichment                                                                                    | ✓     |        |
| Edit and publish the configuration and the target profiles, choose the highlighted reports, trim extra enrichments                          | ✓     |        |
| Add or delete a project, run sync, manage compare repositories, create or revoke MCP tokens, change the MCP server name, manage GitHub Apps | ✓     |        |
| Invite members, change roles, remove members                                                                                                | ✓     |        |
| Delete a person and never process them again                                                                                                | ✓     |        |

A member only sees finished projects. A project still being added is visible to owners only. See [Projects](https://www.gitaudience.com/docs/features/projects.md).

The console hides the buttons a member can't use, and the server refuses those actions anyway. A role change applies to the member's next request.

## The first owner

The address in `ROOT_EMAIL` is the first owner. Each time the instance starts, it makes sure that address is an owner. Until you invite someone, it is the only address that can sign in. See [Installation](https://www.gitaudience.com/docs/self-hosting/installation.md).

That owner can't be removed or made a member: the console shows "The root member (ROOT_EMAIL) cannot be removed or demoted."

To hand that role to another address, change `ROOT_EMAIL` and restart. The new address becomes the root owner. The old one stays an owner, and you can then make it a member or remove it.

## Sign in

### 1. Ask for a code

Open your instance's address. Enter your **Email address** and click **Send a code**.

The page answers the same way whether or not the address has access, so nobody can use it to find out who is a member. A code only goes out to an active member or to an address with a valid invitation.

### 2. Enter the code

The email's subject is "Your GitAudience login code:" followed by the code, so you can read it in your inbox preview. The code is valid for 10 minutes, for at most 5 attempts, and works once.

Type or paste the 6 digits. The console signs you in as soon as the sixth digit is in, or you can click **Sign in**. **Resend code** asks for a new one, and **Change email** goes back to the address.

### 3. Find your projects

An owner with no finished project lands on the form that adds a project. A member with no finished project sees a waiting screen. Otherwise the console opens the first project.

![The sign-in screen after asking for a code: the 6-digit code boxes, the Sign in button, and the Resend code and Change email links](https://www.gitaudience.com/docs/assets/screenshots/members-sign-in-code.png)

The emails go out through the SMTP server set for the instance, in the language of the console that asked for them, English by default. If no code arrives, check the SMTP settings, or use a [rescue link](#rescue-link).

A wrong code shows "Invalid or expired code." A new code replaces the previous ones, and signing in cancels any other code still pending for the address.

### Sessions

A session lasts 30 days and is extended each time you use it. To sign out, click the button at the bottom of the sidebar, next to your address (**Sign out**). Signing out ends that session only.

### Limits on codes

These limits protect the codes from guessing:

| What                 | Limit                                                                                             |
| -------------------- | ------------------------------------------------------------------------------------------------- |
| Code requests        | 3 per address every 15 minutes, 20 per IP address per hour                                        |
| Wrong codes          | 10 per hour for one address from one IP address, 50 per day for one address from all IP addresses |
| Attempts on one code | 5                                                                                                 |

Past a limit, the console shows "Too many requests. Try again later.", even with the right code. The counters apply to every address, member or not, and they are kept in memory: restarting the instance resets them.

Behind a reverse proxy, the instance reads the visitor's IP address according to `TRUST_PROXY`. See [Installation](https://www.gitaudience.com/docs/self-hosting/installation.md).

> [!NOTE]
>
> Someone who knows a member's address can make 50 wrong attempts and lock that address out of codes for a day. The member can still sign in with a [rescue link](#rescue-link).

## Invite someone

### 1. Send the invitation

Open Settings › **Users**. Under **Invite a user**, enter the address, choose **Member** or **Owner**, and click **Send invitation**.

The instance emails an invitation titled "Invitation to join GitAudience", with a link valid for 7 days.

### 2. The invited person signs in

The link opens the sign-in page with **Accept your invitation** and the address already filled in. The person asks for a code and signs in as usual.

The invitation is accepted at the first successful sign-in with that address, with the role you chose. The link only fills in the address: someone who opens the sign-in page without it and asks for a code with the invited address gets in the same way.

![Settings › Users seen by an owner: two members with their role, the Invite a user form and one pending invitation](https://www.gitaudience.com/docs/assets/screenshots/members-settings-users.png)

Pending invitations are listed under **Pending invitations**. **Revoke** stops the link at once, and a code already sent for it stops working too.

A new invitation to the same address replaces the previous one. Inviting the address of an active member changes nothing: change their role in the list instead.

An expired or revoked link shows "This invitation link is invalid or has expired." Send a new invitation.

## Change a role

In Settings › **Users**, an owner picks **Owner** or **Member** in the role menu of a member.

Making an owner a member asks for confirmation first, because:

- the person loses owner permissions on every project;
- their MCP tokens with the agent scope are revoked on every project. Their read tokens keep working. See [MCP server](https://www.gitaudience.com/docs/features/mcp-server.md).

The count of active agent tokens shows next to each member, across all projects.

## Remove a member

Click **Remove** next to the member and confirm. At once:

- their sessions end;
- all the MCP tokens they created are revoked, on every project;
- their pending invitations are revoked, and a code or a rescue link already sent to them stops working.

The console doesn't offer **Remove** on your own row. To let a removed person back in, invite them again.

## Rescue link

When the SMTP server is down, or an address is locked out by the limits above, an operator with access to the server can create a one-time sign-in link:

```bash
docker compose exec api gitaudience login-link alice@orbit.example
```

The command prints a link valid for 15 minutes:

```text
Open this link in your browser within 15 minutes to log in (single use).
It logs in as soon as it is opened: do not paste it into a messaging app, whose link preview would use it.
```

followed by the link itself.

- It works only for an active member. For any other address the command says "no active member has this address". An invited person who isn't a member yet has to wait for email.
- It needs no SMTP and isn't counted by the code limits.
- It works once. Asking for a code or signing in doesn't cancel it.
- The logs record that a link was created and for which member ID, never the link or the address.

An expired or already used link opens the sign-in page with "This sign-in link is invalid or has expired."

## On the demo instance

The demo instance has no sign-in and no members. Every visitor can read everything, and nothing can be changed. Settings › **Users** says "Users cannot be modified on this demonstration instance."
