> For the complete documentation index, see [llms.txt](https://developer.celigo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.celigo.com/cli/commands/end-users.md).

# end-users

Manage end users — external people who sign in through MCP OAuth (optionally via your IdP) to use the account's MCP servers. End users never get workspace access; your team's account collaborators live under [workspace-users](https://developer.celigo.com/cli/commands/workspace-users.md).

An end user's effective access is the union of group memberships ([groups](https://developer.celigo.com/cli/commands/groups.md)), roles ([roles](https://developer.celigo.com/cli/commands/roles.md)), and direct grants. Every command that targets one takes the access-record id (the `_id` from `end-users list`, also called the "ashareId").

There is no `get`, `create`, `update`, `set`, or `delete` — records are created by `invite` (or JIT sign-in through an IdP) and removed by `revoke`, the platform's own name for the operation: access is withdrawn and the record soft-deleted, nothing is destroyed the way a `workspace-users delete` removes its record. The two `connection` verbs address something else: an end user's `mcpChild` connection, the copy holding the credentials they supplied for an MCP server connection with `endUserProvidedFields`.

**REST API**: [End Users](https://developer.celigo.com/api/api-reference/account-and-admin/end-users)

```
celigo end-users <subcommand> [args] [flags]
```

Supports all [global flags](https://developer.celigo.com/cli/getting-started/global-flags.md).

***

## Subcommands

| Subcommand                         | Purpose                                                                                                                                                                                |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `list`                             | List end users with identity fields (email, name, last sign-in) joined in.                                                                                                             |
| `effective-access <ashareId>`      | Compile one end user's effective MCP access: groups, roles, and the merged grant list with each grant's source.                                                                        |
| `invite`                           | Invite end users by email — one address or a bulk batch of up to 100.                                                                                                                  |
| `revoke <ashareId>`                | Withdraw an end user's access (soft-deletes the access record).                                                                                                                        |
| `connection <connectionId>`        | Get one end user's `mcpChild` connection — the copy holding the credentials they supplied for a server connection with `endUserProvidedFields` (masked). Added in celigo-cli 2026.9.6. |
| `delete-connection <connectionId>` | Soft-delete an end user's `mcpChild` connection so they must reconnect with fresh credentials; the account's own connection is untouched. Added in celigo-cli 2026.9.6.                |

***

## `celigo end-users list`

List the account's end users, with identity fields joined from the underlying user record. The `_id` column is the access-record id (ashareId) that `effective-access`, `revoke`, and the [groups](https://developer.celigo.com/cli/commands/groups.md) membership commands take.

**Signature**

```bash
celigo end-users list [--provisioned-by <invite|jit>] [--email <address>]
```

**Arguments**

None.

**Flags**

| Flag                        | Type            | Default | Description                                                                                                                                                                                                                                          |
| --------------------------- | --------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--provisioned-by <source>` | `invite \| jit` | —       | Only end users created by this source: `invite` (explicit invitation) or `jit` (auto-provisioned on first IdP sign-in). The filter takes no `scim`: list without it to see SCIM-provisioned users. Any other value is rejected locally.              |
| `--email <address>`         | string          | —       | Only the end user with this email address. The match is exact once the address is trimmed and lowercased, and a `+` alias is a different address. An address with no end user answers an empty list. Sent as `email`. Added in celigo-cli 2026.11.2. |

Default table columns: `_id`, `email`, `name`, `provisionedBy`, `accepted`, `disabled`, `lastSignIn`.

Since celigo-cli 2026.10.2, the refusal of another value says how to find SCIM-provisioned users:

```
Invalid --provisioned-by 'scim'. Use invite or jit: the filter takes no other value, so list without it to see SCIM-provisioned users (provisionedBy: scim).
```

Since celigo-cli 2026.11.2, a blank `--provisioned-by` or `--email` (an unset shell variable) is refused before the request. A blank `--provisioned-by` used to list every end user.

**Example**

```bash
# Everyone, with identity fields
celigo end-users list --format table

# Only the records an IdP sign-in auto-created
celigo end-users list --provisioned-by jit

# One person's access-record id, by email address
celigo end-users list --email a@example.com --jq '.[0]._id'
```

**Corresponds to**: [`GET /v1/endusers`](https://developer.celigo.com/api/api-reference/account-and-admin/end-users) — with `provisionedBy` and `email` as query parameters.

***

## `celigo end-users effective-access <ashareId>`

Compile an end user's effective MCP access: their group memberships, roles, and the merged access list, with the source of each grant (`direct`, `group:<name>`, `pset:<name>`, `role:<name>`). The per-server mirror of this view is [`mcp-servers effective-access`](https://developer.celigo.com/cli/commands/mcp-servers.md#celigo-mcp-servers-effective-access-less-than-id-greater-than), which compiles the same picture for every end user who can reach one server.

**Signature**

```bash
celigo end-users effective-access <ashareId>
```

**Arguments**

| Argument     | Type   | Required | Description                                         |
| ------------ | ------ | -------- | --------------------------------------------------- |
| `<ashareId>` | string | Yes      | Access-record id (the `_id` from `end-users list`). |

**Example**

```bash
celigo end-users effective-access 68f0a9b2c7d3e8f1a2b3c4d5 --jq '.access'
```

**Corresponds to**: [`GET /v1/endusers/{ashareId}/effective-access`](https://developer.celigo.com/api/api-reference/account-and-admin/end-users)

***

## `celigo end-users invite`

Invite end users by email. Sends real invitation emails, so it requires `full` mode.

One command, two endpoints: exactly one `--email` goes to the single-invite endpoint and prints the created record (`{_userId, _ashareId, status}`); two or more (up to 100) go to the bulk endpoint, which applies the same access to every address and prints `{summary, results}` with a per-address outcome. Bulk invites are sequential and partial-success — a failed address never aborts the batch.

Since celigo-cli 2026.10.1:

* Every address is lowercased before it is sent, as the flag's help always said.
* A bulk invite in which an address failed exits `1` and counts the failures on stderr — `2 of 5 invites failed (status "failed" above); the rest were processed.` The endpoint answers `200` whatever happened to each address, so the exit code is the signal to check in a script.

Since celigo-cli 2026.11.2, a blank `--email` or `--group` value (an unset shell variable) is refused before any request.

**Signature**

```bash
celigo end-users invite --email <email> [--email <email> ...] [--name <name>] \
  [--group <groupId> ...] [--grant <mcpServerId|all>=<capability,...> ...]
```

**Arguments**

None.

**Flags**

| Flag                    | Type                                              | Default              | Description                                                                                                                                                                                                                                                    |
| ----------------------- | ------------------------------------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--email <emails...>`   | string                                            | —                    | **Required.** Email address(es) to invite (normalized to lowercase). Repeatable.                                                                                                                                                                               |
| `--name <name>`         | string                                            | the email local-part | Display name — single invite only. The bulk endpoint doesn't accept it, and end users have no update op, so a display name can only ever be set here.                                                                                                          |
| `--group <groupIds...>` | string                                            | —                    | Group(s) to add every invited end user to as manual memberships. Repeatable.                                                                                                                                                                                   |
| `--grant <grants...>`   | `<mcpServerId\|all>=<capability[,capability...]>` | —                    | Direct MCP-server grant. Capabilities: `tool:`, `api:`, `prompt:`, or `resource:`, each with an id on that server or `all` (an `:all` covers only its own kind), or `pset:<permissionSetId>`. `all` before the `=` grants across every MCP server. Repeatable. |

**Examples**

```bash
# One person, into a group, with every tool and every prompt on one server
celigo end-users invite --email a@example.com \
  --group 68a1b2c3d4e5f6a7b8c9d0e1 \
  --grant 6a1b2c3d4e5f6a7b8c9d0e1f=tool:all,prompt:all

# A bulk batch — the same access for every address
celigo end-users invite --email a@example.com --email b@example.com \
  --grant all=tool:all
```

**Corresponds to**: [`POST /v1/endusers/invite`](https://developer.celigo.com/api/api-reference/account-and-admin/end-users) (single), or [`POST /v1/endusers/invite/bulk`](https://developer.celigo.com/api/api-reference/account-and-admin/end-users) (two or more addresses, max 100).

***

## `celigo end-users revoke <ashareId>`

Withdraw an end user's access: soft-deletes the access record and clears its group memberships. The person's own user record is untouched. Prompts for confirmation unless `-y` is passed. Requires `full` mode.

`revoke` — not the CLI's usual `delete` — is the platform's own name for this operation: access is being withdrawn, no resource is destroyed.

**Signature**

```bash
celigo end-users revoke <ashareId> [-y]
```

**Arguments**

| Argument     | Type   | Required | Description                             |
| ------------ | ------ | -------- | --------------------------------------- |
| `<ashareId>` | string | Yes      | Access-record id from `end-users list`. |

**Flags**

| Flag        | Type    | Default | Description                   |
| ----------- | ------- | ------- | ----------------------------- |
| `-y, --yes` | boolean | `false` | Skip the confirmation prompt. |

**Example**

```bash
celigo end-users revoke 68f0a9b2c7d3e8f1a2b3c4d5 -y
```

**Corresponds to**: [`DELETE /v1/endusers/{ashareId}`](https://developer.celigo.com/api/api-reference/account-and-admin/end-users)

***

## `celigo end-users connection <connectionId>`

Get one end user's connection — the `mcpChild` copy holding the credentials an end user supplied for a server connection whose `endUserProvidedFields` asks for them. Credential fields are masked, as on `connections get`. These copies never appear in `connections list`/`get`; find their ids with [`mcp-servers connections <serverId> --end-users`](https://developer.celigo.com/cli/commands/mcp-servers.md#celigo-mcp-servers-connections-less-than-id-greater-than). Added in celigo-cli 2026.9.6. `connections get` of a copy's id answers `404`, and since celigo-cli 2026.11.1 its hint names this command (and `delete-connection` after a `connections delete`).

**Signature**

```bash
celigo end-users connection <connectionId>
```

**Arguments**

| Argument         | Type   | Required | Description                                                                                                     |
| ---------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------- |
| `<connectionId>` | string | Yes      | The `mcpChild` connection's own `_id`, from `mcp-servers connections <serverId> --end-users` — not an ashareId. |

**Flags**

None beyond [global flags](https://developer.celigo.com/cli/getting-started/global-flags.md).

**Example**

```bash
celigo end-users connection 7b2c3d4e5f6a7b8c9d0e1f2a
```

**Corresponds to**: [`GET /v1/endusers/connections/{_connectionId}`](https://developer.celigo.com/api/api-reference/account-and-admin/end-users)

***

## `celigo end-users delete-connection <connectionId>`

Soft-delete one end user's `mcpChild` connection, so the end user must connect again with fresh credentials the next time they use the server. The account's own connection — the one the server's `connections[]` attaches — is untouched. Prompts for confirmation unless `-y` is passed. Requires `full` mode. Added in celigo-cli 2026.9.6.

**Signature**

```bash
celigo end-users delete-connection <connectionId> [-y]
```

**Arguments**

| Argument         | Type   | Required | Description                                                                                   |
| ---------------- | ------ | -------- | --------------------------------------------------------------------------------------------- |
| `<connectionId>` | string | Yes      | The `mcpChild` connection's own `_id`, from `mcp-servers connections <serverId> --end-users`. |

**Flags**

| Flag        | Type    | Default | Description                   |
| ----------- | ------- | ------- | ----------------------------- |
| `-y, --yes` | boolean | `false` | Skip the confirmation prompt. |

**Example**

```bash
celigo end-users delete-connection 7b2c3d4e5f6a7b8c9d0e1f2a -y
```

**Corresponds to**: [`DELETE /v1/endusers/connections/{_connectionId}`](https://developer.celigo.com/api/api-reference/account-and-admin/end-users)

***

## Gotchas

* **End users are not workspace users.** They authenticate through MCP OAuth to use your MCP servers and never see the integrator.io workspace. Team members who build and operate integrations belong under [workspace-users](https://developer.celigo.com/cli/commands/workspace-users.md). The two surfaces use separate APIs and separate access records.
* **The working id is the ashareId.** Every command here takes the access-record `_id` from `end-users list` — the same id `groups add-members` and `mcp-servers assign-end-users` take. The person's own user id (`_userId`) is not accepted. The exceptions are `connection` and `delete-connection`, which take the `mcpChild` connection's own `_id` from `mcp-servers connections <serverId> --end-users`.
* **`invite` sends real emails.** It requires `full` mode, as do `revoke`, `delete-connection`, and the group membership commands — they change who can access your servers, or with what.
* **`delete-connection` forces a reconnect; it is not a revoke.** It soft-deletes one credential copy — the `mcpChild` connection an end user created by supplying the fields a server connection's `endUserProvidedFields` asks for — so they must connect again with fresh credentials the next time they use the server. The account's own connection is untouched, and `revoke` remains the verb that withdraws access. Only `mcp-servers connections <serverId> --end-users` lists these copies; `connections list`/`get` never show them.
* **`--name` only works on a single invite.** The bulk endpoint doesn't accept a display name, and end users have no update operation, so the invite is the only place a name can ever be set. It defaults to the email local-part.
* **Bulk invites are partial-success.** Two or more `--email` values route to the bulk endpoint, which processes addresses sequentially and reports a per-address outcome — a failed address never aborts the rest of the batch. Since celigo-cli 2026.10.1 the command exits `1` when any address failed, and says how many on stderr.
* **`provisionedBy` tells you how a record was created.** `invite` means someone ran an explicit invitation; `jit` means the record was auto-provisioned when the person first signed in through your IdP; `scim` means SCIM provisioning created it. `list --provisioned-by` takes only `invite` and `jit`, so list without the filter to find SCIM-provisioned users.
* **Each `:all` grant covers only its own kind.** `tool:all` grants no prompts or resources: grant them with `prompt:` and `resource:`. An older `tool:<prompt id>` grant still validates, but effective access does not report it — grant a prompt as `prompt:<id>`.
* **`revoke` is a soft delete.** The access record is withdrawn and group memberships cleared, but nothing is destroyed — unlike `workspace-users delete`, which removes its access record entirely.

## Related

* [workspace-users](https://developer.celigo.com/cli/commands/workspace-users.md) — your team's account collaborators (the other kind of user).
* [groups](https://developer.celigo.com/cli/commands/groups.md) — bundle roles and grants, then manage membership with ashareIds from `list`.
* [roles](https://developer.celigo.com/cli/commands/roles.md) — named, reusable sets of MCP-server grants.
* [mcp-servers](https://developer.celigo.com/cli/commands/mcp-servers.md) — the resources being granted; `effective-access` and the `assign-*` commands mirror this group's per-user view, and `mcp-servers connections <id> --end-users` lists the `mcpChild` connections `connection`/`delete-connection` take.
* [connections](https://developer.celigo.com/cli/commands/connections.md) — the account's own connections; `endUserProvidedFields` (settable with `connections set`) names the fields end users supply themselves.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.celigo.com/cli/commands/end-users.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
