# org.atgrp.authModerate

> For group account sessions. Limited to what the authorizing user's roles grant.

- Kind: permission-set
- Authority: atgrp.org
- Lexicon: 1
- Published by [lex.atgrp.org](https://lexicon.garden/identity/did:plc:4pt2cnpyvfgn5b7uxwn2shwv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.authModerate)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.authModerate/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.authModerate/analytics)

## Permission set (`org.atgrp.authModerate`)

Type: permission-set

### Shown at sign-in

- `title` (string): Group moderation
- `detail` (string): Label content, remove members, and review reports.

### Permissions

- `space` (permission): Read, create, update and delete com.atproto.label.record records in the space self among your own org.atgrp.meta spaces. From the Atproto Spaces proposal (0016); servers without it ignore space permissions.
  - Constraints: authority: self, skey: self, collection: com.atproto.label.record, action: read, create, update, delete
  - Space type: `org.atgrp.meta`
- `space` (permission): Read, create, update and delete com.atproto.label.record records in the space self among your own org.atgrp.members spaces. From the Atproto Spaces proposal (0016); servers without it ignore space permissions.
  - Constraints: authority: self, skey: self, collection: com.atproto.label.record, action: read, create, update, delete
  - Space type: `org.atgrp.members`
- `space` (permission): Read and delete org.atgrp.membership records in the space self among your own org.atgrp.members spaces. From the Atproto Spaces proposal (0016); servers without it ignore space permissions.
  - Constraints: authority: self, skey: self, collection: org.atgrp.membership, action: read, delete
  - Space type: `org.atgrp.members`
- `rpc` (permission): Call org.atgrp.mod.querySubjects, org.atgrp.mod.querySubjectHistory and org.atgrp.mod.updateSubject on any service, by the reference implementation's rules. Servers that require a concrete audience grant it only with inheritAud and an aud on the scope.
  - Constraints: aud: *
  - Methods: `org.atgrp.mod.querySubjects`, `org.atgrp.mod.querySubjectHistory`, `org.atgrp.mod.updateSubject`

### Asking for it (OAuth scope)

- `include:org.atgrp.authModerate` (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 account sessions. Limited to what the authorizing user's roles grant.",
      "detail": "Label content, remove members, and review reports.",
      "permissions": [
        {
          "action": [
            "read",
            "create",
            "update",
            "delete"
          ],
          "authority": "self",
          "collection": [
            "com.atproto.label.record"
          ],
          "resource": "space",
          "skey": "self",
          "spaceType": "org.atgrp.meta",
          "type": "permission"
        },
        {
          "action": [
            "read",
            "create",
            "update",
            "delete"
          ],
          "authority": "self",
          "collection": [
            "com.atproto.label.record"
          ],
          "resource": "space",
          "skey": "self",
          "spaceType": "org.atgrp.members",
          "type": "permission"
        },
        {
          "action": [
            "read",
            "delete"
          ],
          "authority": "self",
          "collection": [
            "org.atgrp.membership"
          ],
          "resource": "space",
          "skey": "self",
          "spaceType": "org.atgrp.members",
          "type": "permission"
        },
        {
          "aud": "*",
          "lxm": [
            "org.atgrp.mod.querySubjects",
            "org.atgrp.mod.querySubjectHistory",
            "org.atgrp.mod.updateSubject"
          ],
          "resource": "rpc",
          "type": "permission"
        }
      ],
      "title": "Group moderation",
      "type": "permission-set"
    }
  },
  "id": "org.atgrp.authModerate",
  "lexicon": 1
}
```
