# rip.pds.admin.getOwner

> 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.getOwner)
- [Documentation](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.admin.getOwner/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.admin.getOwner/examples)

## Definitions

### `rip.pds.admin.getOwner`

**Type**: `query`

One person's accounts and their whole recorded history on this server, including accounts that are already gone. Operators only.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `historyLimit` | `integer` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `owner` | `ref` → `rip.pds.admin.defs#ownerView` | Yes |  |
| `history` | `array` | Yes | Creations, deletions, takedowns, labels and handle changes across all of their accounts, newest first. |
| `accounts` | `array` | Yes |  |

#### Errors

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

## Raw Schema

```json
{
  "id": "rip.pds.admin.getOwner",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotAnOperator",
          "description": "The calling account does not operate this server."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "owner",
            "accounts",
            "history"
          ],
          "properties": {
            "owner": {
              "ref": "rip.pds.admin.defs#ownerView",
              "type": "ref"
            },
            "history": {
              "type": "array",
              "items": {
                "ref": "rip.pds.admin.defs#eventView",
                "type": "ref"
              },
              "description": "Creations, deletions, takedowns, labels and handle changes across all of their accounts, newest first."
            },
            "accounts": {
              "type": "array",
              "items": {
                "ref": "rip.pds.admin.defs#accountView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did"
          },
          "historyLimit": {
            "type": "integer",
            "default": 200,
            "maximum": 500,
            "minimum": 1
          }
        }
      },
      "description": "One person's accounts and their whole recorded history on this server, including accounts that are already gone. Operators only."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
