pub.chive.actor.getMyRoles
Get the authenticated user's roles and access flags
Repository
@lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh
not from the namespace authority
Details · query
| Kind | query |
|---|---|
| Authority | actor.chive.pub |
| Indexed |
Showing version bafyreihe5w2id4po4txa4w4hedhvtghnmohfjt3fko5whzvt5tnt4pz3iy. Show the latest
Checks
Validunlimited-stringdefs.main.output.schema.properties.roles.itemsNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Get the authenticated user's roles and access flags",
"errors": [
{
"name": "AuthenticationRequired"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"isAdmin": {
"description": "Whether the user has admin privileges",
"type": "boolean"
},
"isAlphaTester": {
"description": "Whether the user has alpha tester access",
"type": "boolean"
},
"isPremium": {
"description": "Whether the user has premium access",
"type": "boolean"
},
"roles": {
"description": "List of role identifiers assigned to the user",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"roles",
"isAdmin",
"isAlphaTester",
"isPremium"
],
"type": "object"
}
},
"parameters": {
"properties": {},
"type": "params"
},
"type": "query"
}
},
"id": "pub.chive.actor.getMyRoles",
"lexicon": 1,
"revision": 1
}