TokenResponseException: 401 Unauthorized Exception when trying to access Admin SDK Google API.

后端 未结 4 770
遇见更好的自我
遇见更好的自我 2021-01-24 05:34

I am trying to do an extract of users in my domain by accessing the Google Admin SDK API. I am however given a 401 unauthorized exception. The code below is my settings class th

4条回答
  •  醉酒成梦
    2021-01-24 06:11

    In my case in Intellij IDE, it cashed the credential file which was the issue. So if you are changing the google account and credential file you must also delete the cashed credentials. It is located in your project directory under token/StoredCredential

提交回复
热议问题