# zone.stratos.admin.listAdmins

> Published by [lexicon.northsky.app](https://lexicon.garden/identity/did:plc:6uxgo3ypovauub7nblwylqyv)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.admin.listAdmins)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.admin.listAdmins/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.admin.listAdmins/examples)

## Definitions

### `zone.stratos.admin.listAdmins`

**Type**: `query`

List everyone holding admin access. Requires admin authorization.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `admins` | `array` | Yes |  |
| `viewer` | `string` (did) | Yes | The DID of the requesting admin. |

### `zone.stratos.admin.listAdmins#admin`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `source` | `string` | Yes | Where the grant comes from. Config admins cannot be revoked through the API. |
| `addedAt` | `string` (datetime) | No | When access was granted. Absent for config admins. |
| `addedBy` | `string` (did) | No | Who granted access. Absent for config admins. |

## Raw Schema

```json
{
  "id": "zone.stratos.admin.listAdmins",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "admins",
            "viewer"
          ],
          "properties": {
            "admins": {
              "type": "array",
              "items": {
                "ref": "#admin",
                "type": "ref"
              }
            },
            "viewer": {
              "type": "string",
              "format": "did",
              "description": "The DID of the requesting admin."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "List everyone holding admin access. Requires admin authorization."
    },
    "admin": {
      "type": "object",
      "required": [
        "did",
        "source"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did"
        },
        "source": {
          "type": "string",
          "description": "Where the grant comes from. Config admins cannot be revoked through the API.",
          "knownValues": [
            "config",
            "database"
          ]
        },
        "addedAt": {
          "type": "string",
          "format": "datetime",
          "description": "When access was granted. Absent for config admins."
        },
        "addedBy": {
          "type": "string",
          "format": "did",
          "description": "Who granted access. Absent for config admins."
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
