Skip to content

Impossible to use Application Default Credentials (ADC) + Admin Directory API (@googleapis/admin)? #3634

Closed

Description

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)?

Activity

  1. sofisl commented on Mar 21, 2025

    @sofisl
    Contributor

    Transferring this to a discussion Q&A, thanks for answering the question!

  2. locked and limited conversation to collaborators on Mar 21, 2025
  3. converted this issue into a discussion #3643 on Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions