# social.grain.unspecced.getSpaceMembers

> Who a private gallery is shared with. Read from the space's authority, which is the only place the member list exists, so only the gallery's author can ask.

- Kind: query
- Authority: unspecced.grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.getSpaceMembers)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.getSpaceMembers/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.getSpaceMembers/analytics)

## Query (`social.grain.unspecced.getSpaceMembers`)

Type: query · GET

### Parameters (query string)

- `space` (string, required)

### Output (application/json)

- `members` (array, required)
  - `items` (ref)
    - Reference: `#memberView`

### Errors

- `NotAuthorized`: Only the gallery's author may list its members.

## #memberView (`social.grain.unspecced.getSpaceMembers#memberView`)

Type: object

### Properties

- `avatar` (string · uri)
- `did` (string · did, required)
- `displayName` (string)
- `handle` (string)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Who a private gallery is shared with. Read from the space's authority, which is the only place the member list exists, so only the gallery's author can ask.",
      "errors": [
        {
          "description": "Only the gallery's author may list its members.",
          "name": "NotAuthorized"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "members": {
              "items": {
                "ref": "#memberView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "members"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "space": {
            "type": "string"
          }
        },
        "required": [
          "space"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "memberView": {
      "properties": {
        "avatar": {
          "format": "uri",
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "handle": {
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    }
  },
  "id": "social.grain.unspecced.getSpaceMembers",
  "lexicon": 1
}
```
