Questions tagged [google-admin-sdk]

Use for questions about using APIs and services that are part of the Google (G Suite) Admin SDK, platform for developers that write applications to manage G Suite domains, migrate from and integrate with existing IT infrastructure, create users, update settings, audit activity, and more.

About

The Google (G Suite) Admin SDK allows developers to write applications to manage Google Apps domains, migrate from and integrate with existing IT infrastructure, create users, update settings, audit activity, and more.

Use for questions

About APIs and services that are part of the G Suite Admin SDK

Do not use for questions

About general interaction with Google APIs, use instead.

Admin SDK APIs

: Admin Settings API
: Alert Center API
: Directory API
: Domain Shared Contacts API
: Email Audit API
: Enterprise License Manager API
: Groups Migration API
: Groups Settings API
: GSuite Email Audit API
: GSuite Reseller API (former Enterprise Apps Reseller API)
: Reports API

Deprecated APIs

  1. Email Migration API on November 1, 2015
  2. Email Settings API on October 16, 2019
1554 questions
10
votes
1 answer

OrgUnit Not Found using Google Directory API

Procedure I'm going to:1. Get a OrgUnit from the Google Directory API 2. Read the OrgUnit and collect the required Data 3. Try to delete the OrgUnit I just collected. This somehow results in a 404 [Not Found] Error Please keep in mind that the…
Nick Prozee
  • 2,823
  • 4
  • 22
  • 49
9
votes
2 answers

【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 = '/opt/Google/credentials.json' CLIENT_SECRETS =…
9
votes
3 answers

Insufficient Permission: Request had insufficient authentication scopes in google directory API when logging through admin

I'm using google admin directory API to get all accounts public information using following API https://www.googleapis.com/admin/directory/v1/users here is link for this api link when I logged in using g suite domain account let say…
Asad
  • 3,070
  • 7
  • 23
  • 61
9
votes
2 answers

Retrieving Google User Photo

I am able to retrieve the thumbnailPhotoUrl from the user.list api of the google admin SDK. However, whenever I try to render the image, Google is redirecting to a static silhouette image. The URL that is retrieved via the API looks…
9
votes
4 answers

Can't list users with Google Directory API Admin SDK

I'm trying to use the AdminService to manage my domain's users and groups, but I'm stuck with a simple request to get all the users of my domain. There is the code in C#: public Users GetAllUsers() { var provider = new AssertionFlowClient( …
zhywu
  • 1,012
  • 1
  • 12
  • 26
9
votes
3 answers

Google Calendar API view / edit rooms / resources?

Is there some way with the Google Calendar API to view which rooms have been booked when retrieving a meeting via the API? Also is there a way to add a room resource to a meeting via the Calendar API?
Brettski
  • 1,061
  • 2
  • 12
  • 25
8
votes
2 answers

Google Directory API: 403 when retrieving user information with service account

This is likely related to Google Directory API returns 403 for user_list with showDeleted=true but I am unfortunately unable to comment yet, and I don't have an answer to offer. I received a service account from a school's G Suite with the…
Matt Wester
  • 83
  • 1
  • 6
8
votes
2 answers

Unable to block room using Google calendar Api

This is my java code using this code I am trying to create event with room (room is added using resource Google Calendar API) event created success fully with room A. However when I check in Google Calendar and try see available room in that A…
8
votes
1 answer

How do I use JWT to access Google Directory (Admin SDK) using NodeJS client libraries?

I'm trying to make a server application that will add/remove users to my domain's groups. Note that it will not have any interaction with users, it is server-to-server application. I registered my application in the Google API Console, downloaded…
Marcelo Schmidt
  • 609
  • 4
  • 15
8
votes
1 answer

Why does a service account with delegated domain access still need impersonation?

I am considering using OAuth 2.0 service accounts and domain-wide delegation of authority to integrate our service with Google Apps. A particular use case is: When Google Apps customer signs up for our service, pre-provision our service leveraging…
7
votes
3 answers

Integrating with Google Admin SDK in C#

I'm currently trying to integrate with the Google Admin SDK via C# so we can manage users via our own system. However, when running the project I get the error: Unauthorized Client. Things I have already done via a super admin account: Setup…
7
votes
1 answer

Need help formatting datetime timezone for Google API

I've retrieved a datetime from a bigquery record (using the google.cloud.bigquery library) and need to send it to the google admin sdk reports API in rfc 3339 format according to the 'startTime' parameter of this api method. The API is expecting…
Michael
  • 1,428
  • 3
  • 15
  • 34
7
votes
3 answers

How can an Admin access the Google Drive contents of all the users in a particular domain?

I am developing a tool to automate the transfer of ownership of Google Drive documents from one user to another using Admin SDK which is run by the admin. I used the Data transfer API for the ownership transfer. I wanted to validate the transfer by…
Sigma
  • 145
  • 1
  • 1
  • 4
7
votes
1 answer

Change READ TIMEOUT for a batch HTTP Request on using Google API Client Library for Java

I am making batch requests for adding members to groups. For this I am using OAuth2.0 and obtaining the object of class type Credential.When executed, the batch.execute() throws a java.net.SocketTimeoutException : Read timed out To change the…
7
votes
3 answers

Google API/get directory contacts

I need get list of contacts/phones from google buisness directory listing. I have tried Google Contacts api, it work ok for all contacts under "My Contacts", but not allow show "Directory" contacts. What i have use/how to access thoose…