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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connection_name": "<connection_name>"
},
"name": "get_current_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |