---
title: Groups and sharing
description: "Organize members into groups and share apps or manual OAuth clients with selected groups or everyone in your organization."
---

**Groups** let you share apps and manual OAuth clients with a specific set of teammates instead of only yourself or the entire organization. From **Groups** (`/org/<slug>/groups`), owners and admins click **Create group**, add members, and then select that group under an app's **Settings → App access** or an OAuth client's sharing menu.

Available on **Self-host** and **Cloud** with identical steps. Local Executor runs for one person on one machine and has no groups.

**Prerequisites:** You must be an organization **owner** or **admin** to create, edit, or delete groups, or to register and share OAuth clients. To change who can use an app, you must be the app's creator, an **admin**, or an **owner**.

**You'll know it worked when:** Opening a group's detail page (`/org/<slug>/groups/<group-id>`) shows the members under **Members** and every shared app under **Apps**. Those members can immediately see and run the app from **Apps** and their MCP clients.

## Who can see groups

- **Owners and admins** see every group in the organization and every member in each group.
- **Members** see only the groups they belong to and the members of those groups. They cannot create, rename, add members to, or delete groups.

## Create and manage groups

1. Open **Groups** (`/org/<slug>/groups`) from the sidebar.
2. Click **Create group**.
3. Enter a **Name** (1–80 characters, unique in the organization) and an optional **Description** (up to 240 characters).
4. Submit to create the group, then open it to manage its members.
5. Click **Add members**, select the teammates to include, and save.

From a group's page (`/org/<slug>/groups/<group-id>`), owners and admins can also:

- Click **Edit group** to change the name or description.
- Remove individual members from the group.
- Click **Delete group** to remove the group and its membership list. Organization members and apps are kept; apps that were shared only with that group stop being available to its former members.

## Share an app with groups

New apps start as **Only me**. To change who can use an app:

1. Open the app and go to its **Settings** tab.
2. Under **App access** (**Who can use this app?**), choose an audience:
   - **Only me** (or **Only the creator** when viewed by an admin): only the person who created the app can use it.
   - **Selected groups**: pick one or more groups. Regular members who created the app can only pick groups they belong to; admins and owners can pick any group in the organization.
   - **Everyone in the organization**: every current member can use the app.
3. Click **Save access** (or **Reset changes** to discard edits).

Sharing an app grants permission to see and run its tools. It never shares your personal accounts — each teammate connects and links their own accounts unless the app declares app-scoped accounts linked by an editor.

## Share an OAuth client with groups

Organization owners and admins can register manual OAuth clients and control which members may sign in with them when connecting accounts.

1. Open **Accounts** (`/org/<slug>/accounts`) and click **OAuth clients**.
2. Click **Register client** (or open a manual client's menu and click **Edit**).
3. Choose the **Service**, copy the **Redirect URL** into the service's OAuth settings, and enter the **Client ID** and optional **Client secret**.
4. Under the audience selector for **this client**, choose **Only me** (or **Only the creator**), **Selected groups**, or **Everyone in the organization**.
5. Click **Register** (or **Save**).

Automatic OAuth clients registered dynamically with a service cannot be edited and are available to everyone in the organization. Changing a manual client's audience or credentials applies only to new connections; accounts already connected keep the details they signed in with.

## Example

The organization HTTP API exposes group creation and app sharing with optimistic concurrency via `revision`. Creating a group and sharing an app with it:

```sh
# 1. Create a group (owner or admin)
curl -X POST "https://app.executor.sh/api/organizations/$ORG_ID/groups" \
  --header "Authorization: Bearer $EXECUTOR_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"name":"Support","description":"Customer support engineers","memberIds":[]}'

# 2. Share an app with that group (creator, admin, or owner)
curl -X PATCH "https://app.executor.sh/api/organizations/$ORG_ID/apps/$APP_ID/access" \
  --header "Authorization: Bearer $EXECUTOR_API_KEY" \
  --header 'Content-Type: application/json' \
  --data "{\"audience\":{\"kind\":\"groups\",\"groups\":[\"$GROUP_ID\"]},\"revision\":\"$REVISION\"}"
```

## Limits

- **Accounts are never shared via groups:** Groups apply to apps and manual OAuth clients only. Personal accounts belong exclusively to the member who connected them.
- **Name and size caps:** Group names must be 1–80 characters and unique within the organization (`name_taken`). Descriptions are up to 240 characters. A group holds up to 10,000 unique organization members.
- **Member sharing restriction:** A non-admin app creator can only share with groups they belong to; choosing another group returns `403`.
- **Departed app creator:** If an app's or OAuth client's creator leaves the organization, you cannot switch its audience back to **Only the creator** (`creator_unavailable`).
- **Concurrent edits:** Group and access updates check a revision token and refuse stale writes (`changed` or `members_changed`) so simultaneous edits do not silently overwrite each other.
- **OAuth client secrets:** Saved client secrets are never shown again after registration or update.

## Related

- [Organizations and access](/docs/concepts/organizations-and-access)
- [Members and roles](/docs/organizations/members)
- [Providers and accounts](/docs/concepts/providers-and-accounts)
- [Connect an account](/docs/connect-an-account)
- [Organization settings](/docs/organizations/settings)
