ResourceNotFound for defender for Identity incidents

itay4 36 Reputation points
2024-06-07T06:00:53.2533333+00:00

Hi, we are trying to get Defender for Identity incidents using this:

curl -X GET https://api.security.microsoft.com/api/incidents/{} -H "Accept: application/json" -H "Authorization: Bearer <>" -H "Content-Type: application/json" --noproxy "*"

but we are getting this error:

{"error": {"code": "ResourceNotFound", "message": "Incident {} was not found"}

Although the incident ID exists in the MS portal, what should we do?

Microsoft Defender for Identity
Microsoft Defender for Identity
A Microsoft service that helps protect enterprise hybrid environments from multiple types of advanced, targeted cyberattacks and insider threats.
169 questions
0 comments No comments
{count} vote