Windows defender advanced queries return 403
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 :