get_current_user
Retrieve the authenticated Grafana user's profile information. Requires session-based authentication; returns a structured explanation if an API key is used.
Instructions
Get profile information for the authenticated Grafana user.
Note: This endpoint only works with session-based authentication. API keys are service account tokens and are not associated with a user profile. When using API key auth, this will return a 404 error.
Args: connection_name: Name of the Grafana connection
Returns: JSON string describing the current user (id, login, email, role, etc.). When the connection uses API key auth, returns a structured explanation instead of surfacing Grafana's raw 404 response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |