Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert Center API Error: 401 Unauthorised #114

Open
Baldur10 opened this issue Apr 12, 2021 · 0 comments
Open

Alert Center API Error: 401 Unauthorised #114

Baldur10 opened this issue Apr 12, 2021 · 0 comments

Comments

@Baldur10
Copy link

Sample Name

Alert Center API Quickstart

Expected Behavior

Retrieval of Alert Center Alerts after a successful API call

Actual Behavior

Exception in thread "main" java.io.IOException: Error getting access token for service account: 401 Unauthorized

Specifications

  • Java version ('16')
  • Windows
  • Apache Maven version 3.6.3

Hello. I have been trying to build a script to retrieve Alert Center Reports using a service account authorized to access the domain. Upon running the script, I seem to be running into the aforementioned error inspite of granting domain wide delegation and permission to access the scope (https://www.googleapis.com/auth/apps.alerts) to the said service account. The credentials.json file seems to be up to date for the service account as well.

Here you can view the error message and assorted info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant