Skip to main content

All Questions

15 votes
5 answers
14k views

【Google OAuth】AttributeError: 'InstalledAppFlow' object has no attribute 'run_console'

I wrote a Python script(Google_add.py) which creates users in the Google Workspace. However, When it is run, an AttributeError occurred. How do I resolve this Error? ・Google_add.py (Excerpt) PATH = '/...
Anonymous's user avatar
  • 175
1 vote
1 answer
4k views

Accessing Google Admin API via Service Account

Is it possible to access the Google Admin Reports API via server to server Service Account authorization? I am try to make a server to server call to the Google Admin API, following the tutorial here. ...
rgahan's user avatar
  • 707
2 votes
2 answers
1k views

Get refresh token using service account impersonation Google Drive

I wrote a script that will search for files in multiple users gdrives in our company. The problem is that the script works but only for a period of time, but then it gets HTTP 401 errors, most likely ...
Brpat's user avatar
  • 63
3 votes
1 answer
3k views

What is the proper way to authenticate with Google to use Google Directory API in the Admin SDK?

I've been having trouble over the past few days using the Google Directory API in the Admin SDK for Google Apps. The documentation leaves a lot to be desired and when I contacted Google Apps ...
Tyler's user avatar
  • 1,285
2 votes
1 answer
501 views

How can I access user info on a domain without the domain administrator enabling API access?

I have written an application that I have listed in the Google Marketplace. I am trying to get my app to use the Directory API (part of the Admin SDK). According to the documentation here: https://...
jon's user avatar
  • 61