# fyi.opensocial.manageSpaces

> For group-DID sessions.

- Kind: permission-set
- Authority: opensocial.fyi
- Lexicon: 1
- Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.manageSpaces)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.manageSpaces/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.manageSpaces/analytics)

## Permission set (`fyi.opensocial.manageSpaces`)

Type: permission-set

### Shown at sign-in

- `title` (string): Group access
- `detail` (string): Control who can see and change the group's info and member list, and which spaces are listed.

### Permissions

- `space` (permission): Read, create, update and delete fyi.opensocial.access records in the space self among your own fyi.opensocial.meta spaces. From the Atproto Spaces proposal (0016); servers without it ignore space permissions.
  - Constraints: authority: self, skey: self, collection: fyi.opensocial.access, action: read, create, update, delete
  - Space type: `fyi.opensocial.meta`
- `space` (permission): Read, create, update and delete fyi.opensocial.space and fyi.opensocial.access records in the space self among your own fyi.opensocial.members spaces. From the Atproto Spaces proposal (0016); servers without it ignore space permissions.
  - Constraints: authority: self, skey: self, collection: fyi.opensocial.space, fyi.opensocial.access, action: read, create, update, delete
  - Space type: `fyi.opensocial.members`

### Asking for it (OAuth scope)

- `include:fyi.opensocial.manageSpaces` (scope): A client asks for this permission set with this scope. The scope builder lists what the set grants.
  - Scope builder: `Open in the scope builder`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "For group-DID sessions.",
      "detail": "Control who can see and change the group's info and member list, and which spaces are listed.",
      "permissions": [
        {
          "action": [
            "read",
            "create",
            "update",
            "delete"
          ],
          "authority": "self",
          "collection": [
            "fyi.opensocial.access"
          ],
          "resource": "space",
          "skey": "self",
          "spaceType": "fyi.opensocial.meta",
          "type": "permission"
        },
        {
          "action": [
            "read",
            "create",
            "update",
            "delete"
          ],
          "authority": "self",
          "collection": [
            "fyi.opensocial.space",
            "fyi.opensocial.access"
          ],
          "resource": "space",
          "skey": "self",
          "spaceType": "fyi.opensocial.members",
          "type": "permission"
        }
      ],
      "title": "Group access",
      "type": "permission-set"
    }
  },
  "id": "fyi.opensocial.manageSpaces",
  "lexicon": 1
}
```
