# rip.pds.admin.findAccounts

> Published by [pds.rip](https://lexicon.garden/identity/did:plc:w24v65i3bcsxk6mbbgfdukve)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.admin.findAccounts)
- [Documentation](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.admin.findAccounts/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.admin.findAccounts/examples)

## Definitions

### `rip.pds.admin.findAccounts`

**Type**: `query`

Look an account up by handle or DID, to find out who owns it. Matches deleted accounts too. Operators only.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `q` | `string` | Yes | A DID, or any part of a handle. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `accounts` | `array` | Yes |  |

#### Errors

- **NotAnOperator**: The calling account does not operate this server.

## Raw Schema

```json
{
  "id": "rip.pds.admin.findAccounts",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotAnOperator",
          "description": "The calling account does not operate this server."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "accounts"
          ],
          "properties": {
            "accounts": {
              "type": "array",
              "items": {
                "ref": "rip.pds.admin.defs#accountView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "q"
        ],
        "properties": {
          "q": {
            "type": "string",
            "description": "A DID, or any part of a handle."
          }
        }
      },
      "description": "Look an account up by handle or DID, to find out who owns it. Matches deleted accounts too. Operators only."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
