This commit is contained in:
David Laufer
2018-07-29 18:03:59 +03:00
parent d59e0420a8
commit 3b16260777
2 changed files with 5 additions and 5 deletions

View File

@ -35,8 +35,8 @@ Set-ExecutionPolicy -ExecutionPolicy Bypass
``` ```
$tenantId = '00000000-0000-0000-0000-000000000000' # Paste your own tenant ID here $tenantId = '00000000-0000-0000-0000-000000000000' # Paste your own tenant ID here
$appId = '00000000-0000-0000-0000-000000000000' # Paste your own app ID here $appId = '11111111-1111-1111-1111-111111111111' # Paste your own app ID here
$appSecret = '00000000-0000-0000-0000-000000000000' # Paste your own app secret here $appSecret = '22222222-2222-2222-2222-222222222222' # Paste your own app secret here
$resourceAppIdUri = 'https://securitycenter.onmicrosoft.com/windowsatpservice' $resourceAppIdUri = 'https://securitycenter.onmicrosoft.com/windowsatpservice'
$oAuthUri = "https://login.windows.net/$TenantId/oauth2/token" $oAuthUri = "https://login.windows.net/$TenantId/oauth2/token"

View File

@ -125,9 +125,9 @@ Content-Type: application/json
## Troubleshooting: ## Troubleshooting:
- (403) Forbidden. - (403) Forbidden.
If you get this error when calling WDATP API, your token probably does not include the necessary permission. 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. 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 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 ## Related topic