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

# Managing your Organization

> Manage members, roles, and settings for your Trunk organization.

## Organization Slug and Token

You can find your organization slug under **Settings** → **Organization** → **General**. Your token is under **Settings** → **Developer** → **API Keys**, in the **Organization API token (v1)** section. To reveal, rotate, or create it, see [Finding your API token](https://docs.trunk.io/setup-and-administration/apis.md#finding-your-api-token).

The Trunk Analytics CLI and most legacy Flaky Tests [APIs](https://docs.trunk.io/api/v1) use your organization's slug and token. The token also authenticates the v1 Merge Queue API and tools that don't accept API keys yet, including the Trunk MCP server's token sign-in. The API uses [API keys](https://docs.trunk.io/api/authentication) instead.

> [tab] Slug
>
> ![The General page, with the organization slug in the URL field](https://mintcdn.com/trunk-4cab4936/RwTjhJZhNhKem-nW/assets/flaky-tests/reference/org-slug-light.png?fit=max\&auto=format\&n=RwTjhJZhNhKem-nW\&q=85\&s=47db9f0caa7b01ef7a08b43fa1a560e5)

> [tab] Token
>
> ![The Organization API token (v1) section of the API Keys page](https://mintcdn.com/trunk-4cab4936/RwTjhJZhNhKem-nW/assets/flaky-tests/reference/org-token-light.png?fit=max\&auto=format\&n=RwTjhJZhNhKem-nW\&q=85\&s=07fcca32fecec28d2ddd2671faafa70d)

***

## Managing Team Members

You can manage a team member's role and remove team members by navigating to **Settings** → **Organization** → **Team** → **Members** and clicking on the name of a team member. You can change the role of a team member between member and admin, as well as remove the user from your organization.

![](https://mintcdn.com/trunk-4cab4936/_uqom5T5LPXKKAze/assets/setup-and-administration/org-team.png?fit=max\&auto=format\&n=_uqom5T5LPXKKAze\&q=85\&s=968483d6a522655f72012d8d3d932602)

### Inviting Team Members

You can invite individual members manually by navigating to **Settings** → **Organization** → **Team** → **Members** and clicking the **Invite Users** button. An email will be sent to the invitee's inbox.

In the form, add comma separated email addresses and select a Role from the drop down. This role will be applied to all users in this invite batch.

Available Roles are:

* **Member**: Full access with limited permissions (default)
* **Admin**: Full administrative access

![](https://mintcdn.com/trunk-4cab4936/_uqom5T5LPXKKAze/assets/setup-and-administration/org-team-members-invite.png?fit=max\&auto=format\&n=_uqom5T5LPXKKAze\&q=85\&s=bf193f5a4f9126f777c6c3b41f6020f0)

### Pending Invites

You can view and manage pending email invites by navigating to **Settings** → **Organization** → **Team** → **Pending Invites**.

From this page you can copy the member invite link or revoke the invite using the **three dots** menu.

![](https://mintcdn.com/trunk-4cab4936/_uqom5T5LPXKKAze/assets/setup-and-administration/org-team-pending-invites.png?fit=max\&auto=format\&n=_uqom5T5LPXKKAze\&q=85\&s=5625392a4c1f77640a5ec0518557956c)

### Verified domain auto-join and pending invites

If your organization uses verified-domain auto-join (any user with a matching email domain is automatically added), a pending invite's role takes precedence over the default Member role. When a user signs in for the first time and a pending invite exists for their email address, they join with the invited role (for example, Admin) and the invite is marked accepted.

If a user was already auto-joined as a Member before a higher-role invite was sent, re-clicking the invite link upgrades their membership to the invited role rather than producing an error.

> [!TIP]
>
> Trunk also supports SSO login. If you wish to use SSO, please contact us at [support@trunk.io](mailto:support@trunk.io).

***

## Leaving an Organization

You can remove yourself from an organization at any time by navigating to **Settings** → **Organization** → **General** and clicking **Leave Organization**.

A confirmation dialog will appear. Once you leave, you lose access to the organization's settings, repositories, and test data. Another member can invite you back if needed.

**If you are an admin**, the **Leave Organization** button appears in the **Danger Zone** section at the bottom of the General settings page alongside the **Delete Organization** option.

**If you are not an admin**, the **Leave Organization** option appears as a standalone card outside the Danger Zone section.
