Impossible to use Application Default Credentials (ADC) + Admin Directory API (@googleapis/admin)? #3643
Unanswered
tatutoivio-bf4d
asked this question in
Q&A
Replies: 2 comments
-
Answering to myself in case anyone else is looking for this. There are working solutions in the For example this one: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Transferring this to a discussion Q&A, thanks for answering the question! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've noticed that calling Admin Directory API seems to work only when authenticating with a service account key, not with application default credentials (ADC).
GCP APIs can be called with ADC, but for some reason it seems that Admin Directory API (i.e. Cloud Identity / Workspace resources) cannot be called with them, at least not without some special arrangements(?).
Is there a working code example to get Directory calls to work with ADC? If not, could it be clearly mentioned at least in the repo readme that ADC usage is not possible with Directory APIs (preferably with a justification why)?
Beta Was this translation helpful? Give feedback.
All reactions