Windows defender advanced queries return 403

QA Account 10 Reputation points
2023-05-01T14:16:35.55+00:00

I am getting the following error when trying to use "advancedqueries".

how can I trace the issue? how can I fix it? (I have followed the documentation and I have all the relevant permissions)

Unauthorized request - reason of failure: Account mode is inactive

com.microsoft.graph.http.GraphServiceException: Error code: Unauthorized

Error message: Unauthorized request - reason of failure: Account mode is inactive

POST https://api.securitycenter.windows.com/api/advancedqueries/run

SdkVersion : graph-java/v5.46.0

Content-Type : application/json

User-Agent : MdePartner-Illusive-ActiveDefenseSuit[...]

[...]

403 :

Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} vote

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.