# tools.ozone.signature.findRelatedAccounts

> Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.signature.findRelatedAccounts)
- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.signature.findRelatedAccounts/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.signature.findRelatedAccounts/examples)

## Definitions

### `tools.ozone.signature.findRelatedAccounts`

**Type**: `query`

Get accounts that share some matching threat signatures with the root account.

#### Parameters

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

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `accounts` | `array` | Yes |  |

### `tools.ozone.signature.findRelatedAccounts#relatedAccount`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `account` | `ref` → `com.atproto.admin.defs#accountView` | Yes |  |
| `similarities` | `array` | No |  |

## Raw Schema

```json
{
  "id": "tools.ozone.signature.findRelatedAccounts",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "accounts"
          ],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "accounts": {
              "type": "array",
              "items": {
                "ref": "#relatedAccount",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did"
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "description": "Get accounts that share some matching threat signatures with the root account."
    },
    "relatedAccount": {
      "type": "object",
      "required": [
        "account"
      ],
      "properties": {
        "account": {
          "ref": "com.atproto.admin.defs#accountView",
          "type": "ref"
        },
        "similarities": {
          "type": "array",
          "items": {
            "ref": "tools.ozone.signature.defs#sigDetail",
            "type": "ref"
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
