mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-22 22:03:46 +00:00
Fixes
This commit is contained in:
@ -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"
|
||||
|
@ -125,9 +125,9 @@ Content-Type: application/json
|
||||
## Troubleshooting:
|
||||
|
||||
- (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
|
||||
|
Reference in New Issue
Block a user