Get the authenticated user's roles and access flags
Output
Encoding
application/jsonisAdmin
boolean
Required
Whether the user has admin privileges
isAlphaTester
boolean
Required
Whether the user has alpha tester access
isPremium
boolean
Required
Whether the user has premium access
roles
array
Required
List of role identifiers assigned to the user
Errors
AuthenticationRequired
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "query",
"errors": [
{
"name": "AuthenticationRequired"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"roles",
"isAdmin",
"isAlphaTester",
"isPremium"
],
"properties": {
"roles": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of role identifiers assigned to the user"
},
"isAdmin": {
"type": "boolean",
"description": "Whether the user has admin privileges"
},
"isPremium": {
"type": "boolean",
"description": "Whether the user has premium access"
},
"isAlphaTester": {
"type": "boolean",
"description": "Whether the user has alpha tester access"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {}
},
"description": "Get the authenticated user's roles and access flags"
}