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
Part of
The spec
Published
On the network, the same as the spec has it.
On the reference host
fyi.opensocial.role, its schema of the same name. It may differ from this one.

main record

Record key: any

FieldTypeDescription
displayNamestring
  • maxLength: 640
  • maxGraphemes: 64
Defaults to the role ID.
descriptionstring
  • maxLength: 20000
  • maxGraphemes: 2000
defaultboolean
  • default: false
If true, granted to members admitted through requestJoin.
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.
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.
The schema in the spec
{
  "lexicon": 1,
  "id": "org.atgrp.role",
  "defs": {
    "main": {
      "type": "record",
      "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.",
      "key": "any",
      "record": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "maxGraphemes": 64,
            "maxLength": 640,
            "description": "Defaults to the role ID."
          },
          "description": {
            "type": "string",
            "maxGraphemes": 2000,
            "maxLength": 20000
          },
          "default": {
            "type": "boolean",
            "default": false,
            "description": "If true, granted to members admitted through requestJoin."
          },
          "permissions": {
            "type": "array",
            "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.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "canAssign": {
            "type": "array",
            "maxLength": 100,
            "description": "Keys of roles this role may assign, or * for every role.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            }
          }
        }
      }
    }
  }
}

All of the spec's lexicons