{"id":3435,"date":"2020-06-04T17:44:33","date_gmt":"2020-06-04T16:44:33","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?p=3435"},"modified":"2020-06-04T17:44:33","modified_gmt":"2020-06-04T16:44:33","slug":"aadsts50131-device-is-not-in-required-device-state-known-or-the-request-was-blocked-due-to-suspicious-activity-access-policy-or-security-policy-decisions-with-wdatp","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2020\/06\/aadsts50131-device-is-not-in-required-device-state-known-or-the-request-was-blocked-due-to-suspicious-activity-access-policy-or-security-policy-decisions-with-wdatp\/","title":{"rendered":"AADSTS50131: Device is not in required device state: known. Or, the request was blocked due to suspicious activity, access policy, or security policy decisions with WDATP"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you&#8217;re trying to use the <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/security\/threat-protection\/microsoft-defender-atp\/exposed-apis-create-app-nativeapp\" target=\"_blank\">Windows Defender Advanced Threat Protection through the API <\/a>or through PowerBI and get an AADSTS50131 error, you&#8217;ll probably check your sign in logs to see if you&#8217;re being blocked by conditional access. If there&#8217;s nothing there, as I had the joy of discovering (tsk Microsoft, you really should log this) then check your classic policies and disable if present (old anyway):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/06\/wdatp-conditional-access-AADSTS50131.png\" alt=\"\" class=\"wp-image-3436\" width=\"505\" height=\"1089\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/06\/wdatp-conditional-access-AADSTS50131.png 312w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2020\/06\/wdatp-conditional-access-AADSTS50131-139x300.png 139w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re trying to use the Windows Defender Advanced Threat Protection through the API or through PowerBI and get an AADSTS50131 error, you&#8217;ll probably check your sign in logs to see if you&#8217;re being blocked by conditional access. If there&#8217;s nothing there, as I had the joy of discovering (tsk Microsoft, you really should log &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2020\/06\/aadsts50131-device-is-not-in-required-device-state-known-or-the-request-was-blocked-due-to-suspicious-activity-access-policy-or-security-policy-decisions-with-wdatp\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">AADSTS50131: Device is not in required device state: known. Or, the request was blocked due to suspicious activity, access policy, or security policy decisions with WDATP<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-3435","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=3435"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3435\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=3435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=3435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=3435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}