
# Members, roles, invites, join requests

Owners run an organization and decide on any of its apps; builders build and decide on apps they own. Owners add people from **Settings** > **Members** > **Invite by email**, or approve them under **Requests to join**.
The person then appears in **People** with the role you chose.

## Do it in the console

All of this is on **Settings** > **Members**. Builders can open the page but can't change anything.

| To do this | Do this |
|---|---|
| Invite people | Type one or more addresses in **Invite by email** (separate with commas), pick **Role**, press **Send invite** |
| Resend or cancel an invite | **Pending invites** > **Resend** or **Revoke** |
| Change someone's role | Pick **Owner** or **Builder** in their row of **People** |
| Remove someone | **Remove** in their row (your own row says **Leave**) |
| Answer a request to join | **Requests to join** > pick a role > **Approve**, or **Decline** |
| Cut off an agent | **Agents** > **Revoke** |

## How it works

### What each role can do

| Action | Owner | Builder |
|---|---|---|
| Change organization settings (Members, General, Identity, Connections, Deployment targets) | Yes | Reads them, view only |
| Write context docs | Yes | Reads them |
| Read Activity | Yes | Yes |
| Start an app from **Start an app** | Yes | Yes |
| Approve releases, change an app's Settings | Any app in the organization | Apps they own |
| Transfer an app to another member | Any app | Apps they own |
| Delete or restore an app | Any app | Apps they own |
| Approve custom domains | Yes | No |
| Resume an app's held email | Yes | No |

The app's owner is whoever claimed it or received it by transfer. Every check reads current membership, so a role change or removal takes effect on the next request.

### Invites

An invite is for one address and expires in 7 days. When the console can send mail, the person gets an email with the link; otherwise the console shows the link for you to share. The link opens a page naming your organization and who invited them, with a **Join <organization>** button. Signing in as a different address doesn't join; the page says "This invite is for <address>. You signed in as <other address>." and offers **Email a sign-in link to <address>**, which comes back to the invite, or **Try another account**.

Inviting someone who already has a live invite replaces it, in the role you just chose, and its earlier links reach the new invite. **Resend** issues a new link and restarts the 7 days; earlier links keep working until the invite expires. **Revoke** stops every link to it at once. Inviting someone already in the organization sends nothing. Invites can go to any address, including people outside your domains.

### Requests to join

People at your verified domains see your organization on the one-time join page and in the switcher under **Also at <domain>**. What **Join** does depends on **Settings** > **General** > **How people join**:

| Setting | What happens |
|---|---|
| **Join directly, as a builder** (default) | They're in at once, as a builder. |
| **Ask an owner** | It files a request. Owners get an email, and the request appears under **Requests to join** with the person's note, how they signed in and when. |

Approving lets you pick **Builder** or **Owner**. The person is emailed either way. Use **Ask an owner** if your domain includes contractors or shared mailboxes you don't want walking in. The default is fine for a company where everyone at the domain should see its apps.

### The last owner

An organization always has an owner. The only owner's row offers no role change or **Leave**, and the page says to make someone else an owner first. Two owners stepping down at the same moment still leave one.

### Removing a member

Removing someone, or their leaving, does this at once:

- their apps stay in the organization; apps they owned show the owner as a removed member, and only organization owners can approve them until someone transfers them (the app's **Settings** > **Change owner**);
- their agents in the organization are revoked and leave it, and their unused join codes stop working;
- if the organization has company sign-in, their sessions in it end.

Their Personal organization is untouched.

### Provisioned organizations and break-glass owners

Once company sign-in is confirmed, the provider decides membership. Members then shows "<provider> decides who is in <organization>". Invites and hand-made role changes are off, and each role reads "by <provider>'s groups". Members kept as exceptions still have hand-set roles. See [Company sign-in (SSO) and SCIM](/docs/owners/company-sign-in-and-scim.md).

A break-glass owner is one of one to three owners, named during that setup, who may always sign in with an email link even when the provider is required. They must be owners with an address at a verified domain. Every such sign-in is logged as `sso.bypass` and emailed to every owner, and the provider can never deprovision the last break-glass owner. Name two, so one person's lost laptop isn't an outage.

### Last sign-in

The **Last sign-in** column shows when each person last signed in and how: company sign-in, Google or GitHub, or an email link. "Not yet" means they never have since joining.

## Errors

The console's messages, shown on a "That didn't go through" page.

| Message | HTTP | Cause | Fix |
|---|---|---|---|
| "An organization always has an owner. Make someone else an owner first." | 409 | Demoting or removing the last owner. | Promote someone first. |
| "An organization can send 50 invites a day. Try again tomorrow, or invite fewer people." | 429 | Daily invite cap. | Wait, or send fewer. |
| "<addresses> don't look like email addresses." | 400 | A typo in the list. | Fix the addresses. |
| "<organization> is provisioned: its provider decides who is in and with which role. Map the group in Identity instead." | 409 | Inviting in a provisioned organization. | Use a group mapping. |
| "That request was already answered." | 409 | Another owner decided first. | Nothing to do. |
| "Only owners manage the organization" | 403 | A builder posted a settings change. | Ask an owner; the page names them. |
| "This invite is for someone else" | 403 | Invite opened while signed in as another address. | Sign in as the invited address. |
| "This invite doesn't work" | 410 | Expired, revoked, already used, or incomplete link. | Ask for a new invite. |

## Limits

| Limit | Value |
|---|---|
| Invite lifetime | 7 days |
| Invites (sent and resent) per organization per day | 50 |
| Pending join requests per person per organization | 1 |
| Join requests per person per day | 20 |
| Break-glass owners | 1 to 3 |

## Agent notes

- Agents never get a role. An agent works as the person who connected it, with that person's role.
- Only the app's owner (while still a member) or an organization owner can decide an approval. Anyone else who opens the `/a/<id>` link sees "Not yours to approve" with the names of those who can, so relay the link to one of them.

- **`init.join_other_person`** (HTTP 409, exit 2): `agc init --join <code>` was run by an agent that already works for someone else, and the code is another person's. Fix: run the command agc prints as `next`, which makes a separate agent for the code's person, and keep that `AGC_HOME` for every later `agc` command in this app. Or ask the person who made the code for a prompt of their own.

  ```bash
  env -u AGC_TOKEN AGC_HOME="<new empty folder>" agc init --join <code>
  ```

  Add `--name <app>` if the original command had it. A join code made by one person works only for an agent that works for that person.

## Related

- [Setting up an organization](/docs/owners/setting-up-an-organization.md)
- [Company sign-in (SSO) and SCIM](/docs/owners/company-sign-in-and-scim.md)
- [Managing agents](/docs/owners/managing-agents.md)
- [Release governance](/docs/owners/release-governance.md)
- [Organizations](/docs/owners/setting-up-an-organization.md#organizations-and-roles)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "owners/members-roles-invites-join-requests: <what is wrong>" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
