From 3b16260777bbb44d83119b904ba7fc26380c3f7a Mon Sep 17 00:00:00 2001 From: David Laufer Date: Sun, 29 Jul 2018 18:03:59 +0300 Subject: [PATCH] Fixes --- ...defender-advanced-threat-protection-sample-powershell.md | 4 ++-- ...ced-query-windows-defender-advanced-threat-protection.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-windows-defender-advanced-threat-protection-sample-powershell.md b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-windows-defender-advanced-threat-protection-sample-powershell.md index 23236d1f8b..3513749725 100644 --- a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-windows-defender-advanced-threat-protection-sample-powershell.md +++ b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-windows-defender-advanced-threat-protection-sample-powershell.md @@ -35,8 +35,8 @@ Set-ExecutionPolicy -ExecutionPolicy Bypass ``` $tenantId = '00000000-0000-0000-0000-000000000000' # Paste your own tenant ID here -$appId = '00000000-0000-0000-0000-000000000000' # Paste your own app ID here -$appSecret = '00000000-0000-0000-0000-000000000000' # Paste your own app secret here +$appId = '11111111-1111-1111-1111-111111111111' # Paste your own app ID here +$appSecret = '22222222-2222-2222-2222-222222222222' # Paste your own app secret here $resourceAppIdUri = 'https://securitycenter.onmicrosoft.com/windowsatpservice' $oAuthUri = "https://login.windows.net/$TenantId/oauth2/token" diff --git a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-windows-defender-advanced-threat-protection.md b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-windows-defender-advanced-threat-protection.md index bccb2812b3..1bece5bc78 100644 --- a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-windows-defender-advanced-threat-protection.md +++ b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-windows-defender-advanced-threat-protection.md @@ -125,9 +125,9 @@ Content-Type: application/json​ ## T​roubl​eshooting: - (403) Forbidden. -If you get this error when calling WDATP API, your token probably does not include the necessary permission. -Please refer to section "Verify you can access WDATP app using your app" in Create an AAD app. -If the 'roles' section in the token does not include the necessary permission, either you did not add the necessary permission to your app (refer to step 6 in Create an AAD app) or you did not authorized your app in the tenant (refer to "Application consent" in Create an AAD app​) + If you get this error when calling WDATP API, your token probably does not include the necessary permission. + Please refer to section "Verify you can access WDATP app using your app" in Create an AAD app. + If the 'roles' section in the token does not include the necessary permission, either you did not add the necessary permission to your app (refer to step 6 in Create an AAD app) or you did not authorized your app in the tenant (refer to "Application consent" in Create an AAD app​) ## Related topic