No active license found - Defender 365

Chethan 0 Reputation points
2023-06-13T13:57:26.5+00:00

When trying to access the Microsoft 365 Defender list incident API. I have added the required application permission to generate the bearer token. When i hit the incident endpoint i was able to see below issue.

Endpoint - https://api.security.microsoft.com/api/incidents

Response :

{
    "error": {
        "code": "Unauthorized",
        "message": "Unauthorized request - No active license found",
        "target": "|208630d1-426cdcef8f366a8e."
    }
}
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,250 questions
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.
175 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Akshay-MSFT 17,641 Reputation points Microsoft Employee
    2023-06-14T16:53:34.4+00:00

    @Chethan

    Thank you for posting your query on Microsoft Q&A, from above description I was able conclude that you are looking for a way to call the security API to get the incidents and alerts https://api.security.microsoft.com/api/incidents.

    Seems like there is a documentation update in progress as new graph API has been listed in the doc. You may try using List incidents V1.0,

    You need following permissions for incidents API and call

    GET https://graph.microsoft.com/v1.0/security/incidents with Bearer {token} in Auth request:

    User's image

    • I tried same from graph and was able to run the query, got a null value as I don't have any incidents to be reported.

    User's image

    Please do let me know if you have any queries by responding in the comments section.

    Thanks,

    Akshay Kaushik

    Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.

    0 comments No comments