# fyi.opensocial.role

Declares that a role exists, in the members space. The record key is the role id, of 64 characters at most. A role is deleted only once no member holds it and the permissions record grants it nothing.

A record the reference host at opensocial.fyi publishes. The page: https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-role/

- Published at: at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.role
- In the spec: https://www.atmospheregroups.org/spec/lexicons/org-atgrp-role/, which differs

## The schema as published

```json
{
  "defs": {
    "main": {
      "description": "Declares that a role exists, in the members space. The record key is the role id, of 64 characters at most. A role is deleted only once no member holds it and the permissions record grants it nothing.",
      "key": "any",
      "record": {
        "properties": {
          "bot": {
            "description": "People with this role are bots: accounts that act on their own, not a person. A member is a bot if any of their roles says so.",
            "type": "boolean"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "default": {
            "description": "Granted to members who join through requestJoin. With no role marked so, a newcomer gets member.",
            "type": "boolean"
          },
          "description": {
            "maxGraphemes": 2000,
            "maxLength": 20000,
            "type": "string"
          },
          "displayName": {
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          }
        },
        "required": [
          "displayName"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "fyi.opensocial.role",
  "lexicon": 1
}
```
