# social.grain.basePermissions

> Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.basePermissions)
- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.basePermissions/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.basePermissions/examples)

## Definitions

### `social.grain.basePermissions`

**Type**: `permission-set`

```json
{
  "type": "permission-set",
  "title": "Photos",
  "detail": "Read your communities' photo pools, and add galleries, favourites and comments of your own to them",
  "permissions": [
    {
      "skey": "*",
      "type": "permission",
      "action": [
        "read",
        "create",
        "update",
        "delete"
      ],
      "resource": "space",
      "authority": "*",
      "spaceType": "social.grain.group",
      "collection": [
        "social.grain.gallery",
        "social.grain.gallery.item",
        "social.grain.photo",
        "social.grain.favorite",
        "social.grain.comment"
      ]
    }
  ]
}
```

## Raw Schema

```json
{
  "id": "social.grain.basePermissions",
  "defs": {
    "main": {
      "type": "permission-set",
      "title": "Photos",
      "detail": "Read your communities' photo pools, and add galleries, favourites and comments of your own to them",
      "permissions": [
        {
          "skey": "*",
          "type": "permission",
          "action": [
            "read",
            "create",
            "update",
            "delete"
          ],
          "resource": "space",
          "authority": "*",
          "spaceType": "social.grain.group",
          "collection": [
            "social.grain.gallery",
            "social.grain.gallery.item",
            "social.grain.photo",
            "social.grain.favorite",
            "social.grain.comment"
          ]
        }
      ]
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
