pub.chive.admin.assignRole

chive.pub View official

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Assign a role to a user",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "AdminRequired"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "description": "Target user DID",
              "format": "did",
              "type": "string"
            },
            "role": {
              "description": "Role to assign",
              "knownValues": [
                "admin",
                "moderator",
                "graph-editor",
                "author",
                "reader",
                "alpha-tester",
                "premium"
              ],
              "type": "string"
            }
          },
          "required": [
            "did",
            "role"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "success": {
              "description": "Whether the role was assigned",
              "type": "boolean"
            }
          },
          "required": [
            "success"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "pub.chive.admin.assignRole",
  "lexicon": 1,
  "revision": 1
}

Validate Record

Validate a record against pub.chive.admin.assignRole

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:7natp5xae72bddaqlkef2t4e
CID
bafyreiafpbtv4tyax5e3d7jqghpwrgje2jicpxahzy4lynzcyw3kntcmqq
Indexed At
2026-05-04 17:29 UTC
AT-URI
at://did:plc:7natp5xae72bddaqlkef2t4e/com.atproto.lexicon.schema/pub.chive.admin.assignRole

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@