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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||