superset_user_get_roles
Retrieve roles assigned to the current Apache Superset user. Check /me/roles first, then fall back to user or role endpoints when access is restricted.
Instructions
Get roles for the current user
Tries /api/v1/me/roles/ first. If restricted, uses the JWT sub claim to fetch the user record from /api/v1/security/users/{id} which includes role information. Falls back to listing all roles via /api/v1/security/roles/.
Returns: A dictionary with user role information
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "superset_user_get_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||