Good morning everybody,
I’m trying using the Grafana incident outgoing webhook to create tickets in Shortcut. However, I’ve encountered an issue: the userID in the payload doesn’t match the Grafana user ID.
After reviewing the API documentation, I couldn’t find the source of this userID. Is there an API endpoint that lists users with their corresponding userIDs?
can you share what this webhook looks like.
"version": "v1.0.0",
"id": "webhook-out-6400aeb030670e95",
"source": "/grafana/incident",
"time": "2023-03-02T14:12:00Z",
"event": "grafana.incident.updated.severity",
"incident": {
"incidentID": "5",
"severityID": 1
"labels": [],
"isDrill": false,
"createdTime": "2023-02-27T15:06:25.243788Z",
"modifiedTime": "2023-03-02T14:12:00.730047Z",
"createdByUser": {
"userID": "grafana-incident:user-63f8b6204887f793",
"name": "admin",
"photoURL": "<https://www.gravatar.com/avatar/46d229b033af06a191ff2267bca9ae56?s=512&d=retro>"
},
"closedTime": "",
"durationSeconds": 860734,
"status": "active",
"title": "55",
"overviewURL": "/a/grafana-incident-app/incidents/5/55",
"roles": [
{
"role": "investigator",
"description": "Leads the investigation (has their full-time attention)",
"maxPeople": 1,
"mandatory": true,
"important": true,
"user": {
"userID": "grafana-incident:user-63f8b6204887f793",
"name": "admin",
"photoURL": "<https://www.gravatar.com/avatar/46d229b033af06a191ff2267bca9ae56?s=512&d=retro>"
}
},
{
"role": "observer",
"description": "Watching the incident",
"maxPeople": 0,
"mandatory": false,
"important": false,
"user": {
"userID": "grafana-incident:user-63f8b6204887f793",
"name": "admin",
"photoURL": "<https://www.gravatar.com/avatar/46d229b033af06a191ff2267bca9ae56?s=512&d=retro>"
}
},
{
"role": "commander",
"description": "Owns the incident (has their full-time attention)",
"maxPeople": 1,
"mandatory": true,
"important": true,
"user": {
"userID": "grafana-incident:user-63f8b6204887f793",
"name": "admin",
"photoURL": "<https://www.gravatar.com/avatar/46d229b033af06a191ff2267bca9ae56?s=512&d=retro>"
}
}
],
"taskList": {
"tasks": [
{
"taskID": "task-63ff1bf465deb38c",
"immutable": false,
"createdTime": "2023-03-01T09:33:40.759215968Z",
"modifiedTime": "2023-03-01T09:33:55.286168752Z",
"text": "111",
"status": "done",
"authorUser": {
"userID": "grafana-incident:user-63f8b6204887f793",
"name": "admin",
"photoURL": "<https://www.gravatar.com/avatar/46d229b033af06a191ff2267bca9ae56?s=512&d=retro>"
},
"assignedUser": {
"userID": "grafana-incident:user-63f8b6204887f793",
"name": "admin",
"photoURL": "<https://www.gravatar.com/avatar/46d229b033af06a191ff2267bca9ae56?s=512&d=retro>"
}
}
],
"todoCount": 0,
"doneCount": 1
},
"summary": "Resolved with no comment",
"heroImagePath": "/api/hero-images/default_org/mC0B9YIgrBH3Hf9jvnKsvalHT90QtlODeiXDd2aLgRsflEZrRHGS5ld2KfIAbndglMIHiKSR04FPRPBpS34DA182rpeBxF9MSypELoU7nyOzXS09YenaCUtBZEzCi1xd/v1128/5.png",
"incidentStart": "2023-02-20T15:06:26Z",
"incidentEnd": ""
}
}```