---
title: Invite members
description: Invite people to your organisation, give each one a role, and change or remove them later.
related:
  - /concepts/organisations-projects-and-environments
  - /organisation/read-the-audit-log
  - /cli/orgs
---

An organisation holds your projects and the people who work on them. Each person has one role, which decides what they can do in every project of the organisation.

## Invite someone

[`luna orgs invite`](/cli/orgs) invites an email address with a role, and prints a link to send them. The link is shown once.

```bash
luna orgs invite --email ana@example.com --role developer
```

The link opens a page where they sign in to their account, or make one with that email address. An invitation lasts seven days. They can also accept it in the Console the next time they log in.

Without `--role`, the new member is a viewer. Only an owner can invite an owner.

In the Console, go to **Members** and select **Invite member**.

## Invite without an email address

Leave out `--email` for a link that anyone can use, once.

```bash
luna orgs invite --role viewer
```

:::warning
Whoever opens a link without an email address joins with its role. Send it only to the person you mean, and revoke it if it goes astray.
:::

## Choose a role

A role is the same in every project of the organisation. Nobody makes roles of their own.

| Can | Owner | Admin | Developer | Viewer | Billing |
| --- | --- | --- | --- | --- | --- |
| Deploy code | Yes | Yes | Yes | No | No |
| Create and delete environments | Yes | Yes | Yes | No | No |
| Add and delete tenants | Yes | Yes | Yes | No | No |
| Secrets | Change | Change | Change | See names | No |
| App keys | Change | Change | Change | See | No |
| Lunas' data | Change | Change | Change | No | No |
| Logs, traces and metrics | See | See | See | See | No |
| Usage | See | See | See | See | See |
| API tokens | Change | Change | Change | No | No |
| Projects | Create and delete | Create and delete | Create | No | No |
| Members | Change | Change | See | See | See |
| Billing | Change | Change | No | No | Change |
| Audit log | See | See | No | No | No |
| Organisation name | Change | Change | No | No | No |

An owner can do everything an admin can, and also invite, change and remove owners and delete the organisation.

## List members and invitations

[`luna orgs members`](/cli/orgs) lists each member's account id, email address and role.

```bash
luna orgs members
```

`luna orgs invites` lists the invitations not yet accepted, with each one's id and when it expires. Inviting an address again replaces its open invitation.

```bash
luna orgs invites
```

## Revoke an invitation

`luna orgs revoke-invite` takes an invitation back by its id. Its link stops working.

```bash
luna orgs revoke-invite <INVITE_ID>
```

## Change a role

`luna orgs set-role` gives a member a new role, by their account id from `luna orgs members`.

```bash
luna orgs set-role <ACCOUNT_ID> admin
```

Only an owner can make someone an owner, or change an owner's role. The member sees the change in the Console.

## Remove a member

`luna orgs remove` removes a member by their account id. It asks first, unless you pass `--yes`.

```bash
luna orgs remove <ACCOUNT_ID>
```

Anyone can remove themselves, whatever their role. Only an owner can remove an owner.

## Keep an owner

An organisation always has at least one owner. Luna refuses to remove the last owner or change their role, so make someone else an owner first.

## Next steps

- [Read the audit log](/organisation/read-the-audit-log) shows who invited, changed and removed whom.
- [Automate with API tokens](/platforms/automate-with-api-tokens) gives programs access without a member's login.
- [Manage billing](/organisation/manage-billing) is for owners, admins and billing members.
