{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "For group account sessions. Limited to what the authorizing user's roles grant.",
      "detail": "Manage the group's members, their roles, and invites.",
      "permissions": [
        {
          "action": [
            "read",
            "create",
            "update",
            "delete"
          ],
          "authority": "self",
          "collection": [
            "org.atgrp.membership"
          ],
          "resource": "space",
          "skey": "self",
          "spaceType": "org.atgrp.members",
          "type": "permission"
        },
        {
          "action": [
            "read_self",
            "create",
            "update",
            "delete"
          ],
          "authority": "*",
          "collection": [
            "org.atgrp.invite"
          ],
          "resource": "space",
          "skey": "self",
          "spaceType": "org.atgrp.inbox",
          "type": "permission"
        },
        {
          "aud": "*",
          "lxm": [
            "org.atgrp.listJoinRequests",
            "org.atgrp.denyJoinRequest"
          ],
          "resource": "rpc",
          "type": "permission"
        }
      ],
      "title": "Group members",
      "type": "permission-set"
    }
  },
  "id": "org.atgrp.authManageMembers",
  "lexicon": 1
}
