# us.off-the-clock.getMembership

> Community-wide membership, read from the subspace model: the member entries and policies the community's PDS publishes, which decide what this service shows; the PDS itself decides access (D77). A trusted service may ask about any DID; a viewer only about themselves. A non-member is an answer, not an error.

- Kind: query
- Authority: off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getMembership)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getMembership/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getMembership/analytics)

## Query (`us.off-the-clock.getMembership`)

Type: query · GET

### Parameters (query string)

- `did` (string · did, required): The account to ask about.

### Output (application/json)

- `admin` (boolean, required): An effective admin: administers every pair.
- `adminOf` (array, required): The TIDs of the pairs this DID administers (D35).
  - `items` (string · tid)
- `did` (string · did, required)
- `invited` (boolean): A root entry with both read and write false names this DID: invited, not yet joined (D80); it reads nothing and is listed nowhere.
- `limitedContributor` (boolean): A joined member carrying a counting limited-contributor label: they create only likes, RSVPs, poll votes and their own profile (D92). Omitted otherwise.
- `member` (boolean, required): The community identity, or a DID that has joined: a root entry with read or write (D80).
- `spaces` (array, required): The content halves the DID holds read or write in, as <space-type>/<space-id>; the root is always included for a member.
  - `items` (string)
    - Constraints: maxLength: 512

### Errors

- `Forbidden`: The caller may not ask about this DID.
- `InvalidRequest`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Community-wide membership, read from the subspace model: the member entries and policies the community's PDS publishes, which decide what this service shows; the PDS itself decides access (D77). A trusted service may ask about any DID; a viewer only about themselves. A non-member is an answer, not an error.",
      "errors": [
        {
          "description": "The caller may not ask about this DID.",
          "name": "Forbidden"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "admin": {
              "description": "An effective admin: administers every pair.",
              "type": "boolean"
            },
            "adminOf": {
              "description": "The TIDs of the pairs this DID administers (D35).",
              "items": {
                "format": "tid",
                "type": "string"
              },
              "type": "array"
            },
            "did": {
              "format": "did",
              "type": "string"
            },
            "invited": {
              "description": "A root entry with both read and write false names this DID: invited, not yet joined (D80); it reads nothing and is listed nowhere.",
              "type": "boolean"
            },
            "limitedContributor": {
              "description": "A joined member carrying a counting limited-contributor label: they create only likes, RSVPs, poll votes and their own profile (D92). Omitted otherwise.",
              "type": "boolean"
            },
            "member": {
              "description": "The community identity, or a DID that has joined: a root entry with read or write (D80).",
              "type": "boolean"
            },
            "spaces": {
              "description": "The content halves the DID holds read or write in, as <space-type>/<space-id>; the root is always included for a member.",
              "items": {
                "maxLength": 512,
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "did",
            "member",
            "admin",
            "adminOf",
            "spaces"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "The account to ask about.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "did"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.getMembership",
  "lexicon": 1
}
```
