Atmosphere GroupsOpen specificationBeta
MenuClose

org.atgrp.role

A group role and its group-wide grants, keyed by role ID. Role IDs follow label value syntax ([a-z-]+) and are at least 3 characters. Written by the group in the members space. Grants within a space live in that space's policy.

Kind
A record
Record
at://did:plc:4pt2cnpyvfgn5b7uxwn2shwv/com.atproto.lexicon.schema/org.atgrp.role
In the spec
org.atgrp.role, the same as published here.

main record

Record key: any

FieldTypeDescription
defaultboolean
  • default: false
If true, granted to members admitted through requestJoin.
canAssignarray of string
  • each item, minLength: 1
  • each item, maxLength: 512
  • array maxLength: 100
Keys of roles this role may assign, or * for every role.
descriptionstring
  • maxLength: 20000
  • maxGraphemes: 2000
displayNamestring
  • maxLength: 640
  • maxGraphemes: 64
Defaults to the role ID.
permissionsarray of string
  • each item, minLength: 1
  • each item, maxLength: 2000
  • array maxLength: 100
Group-wide permissions, one per item. For permissions not tied to one space, such as manage=create, rpc: permissions, and space:* grants.
The schema as published
{
  "id": "org.atgrp.role",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "properties": {
          "default": {
            "type": "boolean",
            "default": false,
            "description": "If true, granted to members admitted through requestJoin."
          },
          "canAssign": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 512,
              "minLength": 1
            },
            "maxLength": 100,
            "description": "Keys of roles this role may assign, or * for every role."
          },
          "description": {
            "type": "string",
            "maxLength": 20000,
            "maxGraphemes": 2000
          },
          "displayName": {
            "type": "string",
            "maxLength": 640,
            "description": "Defaults to the role ID.",
            "maxGraphemes": 64
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 2000,
              "minLength": 1
            },
            "maxLength": 100,
            "description": "Group-wide permissions, one per item. For permissions not tied to one space, such as manage=create, rpc: permissions, and space:* grants."
          }
        }
      },
      "description": "A group role and its group-wide grants, keyed by role ID. Role IDs follow label value syntax ([a-z-]+) and are at least 3 characters. Written by the group in the members space. Grants within a space live in that space's policy."
    }
  },
  "lexicon": 1
}

All lexicons