pub.chive.admin.assignRole
{
"$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
}
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.
-
app.didpic.admin.grantRole procedure
Grant a role.
-
pub.chive.admin.revokeRole procedure
Revoke a role from a user
-
app.didpic.admin.revokeRole procedure
Revoke a role.
-
fyi.opensocial.assignRoles procedure
Set a member's full role set. Requires role.assign; every role added or removed must be in the caller's assignable set.
-
zone.stratos.admin.addAdmin procedure
Grant admin access to a DID. Requires admin authorization.