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

# List delegated admins

> Organization members granted Macroscope workspace Admin, and who granted it

Returns the workspace's delegated admins, as listed on the **Delegated admins** page in workspace settings: members of its GitHub organization who were granted Macroscope workspace Admin, oldest grant first, with who granted each. All delegated admins are returned without pagination.

A delegated admin has Macroscope workspace Admin: they can do anything a workspace admin can, including creating API keys, managing billing, and granting or revoking admin for others.

## Authorization

Requires an **Admin** API key, or an [OAuth sign-in](https://docs.macroscope.com/api-reference/mcp.md#permissions) with **Admin** access by a person who is a workspace admin. Read and Write keys get `403`, and a sign-in with Read or Write access gets an `insufficient_scope` challenge for `macroscope:admin`.

**Authorization** `string` *required*

`Bearer <key>`. See [Authentication](https://docs.macroscope.com/api#authentication).

## Path parameters

**workspaceType** `string` *required*

`GITHUB_ORGANIZATION` or `GITHUB_USER`.

**workspaceId** `string` *required*

Numeric GitHub ID of the organization or user.

## Response

**delegatedAdmins** `DelegatedAdmin[]`

The delegated admins. Omitted when there are none.

**properties**

**githubUserId** `string`

GitHub user ID, as a decimal string. Treat as a string, not a number.

**login** `string`

GitHub login. Omitted until Macroscope has synchronized the member.

**name** `string`

GitHub display name. Omitted when unknown.

**createdAt** `string`

When the grant was made (RFC 3339).

**grantedByGithubUserId** `string`

GitHub user ID of the person who made the grant. Present only when a person made it.

**grantedByApiKeyId** `string`

ID of the API key that made the grant. Present only when an API key made it.

## Errors

<table>
  <colgroup>
    <col width="100" />

    <col width="698" />
  </colgroup>

  <thead>
    <tr>
      <th>HTTP</th>
      <th>Meaning</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`403`</td>
      <td>Your credential or your permissions do not allow managing delegated admins</td>
    </tr>
  </tbody>
</table>

See [Errors](https://docs.macroscope.com/api#errors) for the rest.

```bash cURL theme={null}
curl https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/delegatedAdmins \
  -H "Authorization: Bearer $MACROSCOPE_API_KEY"
```

```json 200 theme={null}
{
  "delegatedAdmins": [
    {
      "githubUserId": "49699333",
      "login": "dana",
      "name": "Dana Ruiz",
      "createdAt": "2026-09-14T16:02:11Z",
      "grantedByGithubUserId": "583231"
    },
    {
      "githubUserId": "10293847",
      "login": "lee",
      "createdAt": "2026-11-29T03:40:00Z",
      "grantedByApiKeyId": "01j4c2x8m5r7t9vbq3n6wzdb8k"
    }
  ]
}
```

```json 401 theme={null}
{ "code": 16, "message": "unauthenticated" }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.