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
2
votes
1 answer

Which alert timestamp (createTime or endTime) correlates to the time an email was "REMOVED_FROM_INBOX"

Is anyone aware of which timestamp presented in alerts correlates to the actual time the email was removed from the inbox if the systemActionType states "REMOVED_FROM_INBOX"? My question is specific to the "Gmail phishing" alert source…
jhorne
  • 23
  • 2
2
votes
1 answer

Getting the most recent date & action for each user using AdminReports.Activities.list

I have a requirement to get the most recent activity for each user in the domain within Google Currents (formerly, Google plus) I am using AdminReports.Activities.list for this, using the 'all' parameter rather than an email address. I have tested…
SL8t7
  • 617
  • 2
  • 9
  • 27
2
votes
2 answers

Warning of 409 Conflict issue in API while creating the same group again after deleting the group in Google workspace and from admin console

We are using admin SDK API for creating a group in domain by GDriveFlow app. After existing group in Google workspace admin console, We deleted this group and again creating the same group with API then we are getting the below error message: 409…
2
votes
1 answer

Admin SDK - Reports API - Google Drive: does not return PREVIEW and PRINT events

How can I get PREVIEW and PRINT events from Reports API? Here are links to documentation: PREVIEW - https://developers.google.com/admin-sdk/reports/v1/appendix/activity/drive#preview PRINT -…
2
votes
2 answers

Google user listing with service account using Python

I have a Json service file, and a service account that already accesses translate and sheets, but it will not access user lists. The result is either 400 showing its confused or 401 saying its not authorized. Examples are usually about client…
darren
  • 579
  • 8
  • 23
2
votes
2 answers

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 due to the access token expiring. I'm using a…
2
votes
1 answer

Google Admin SDK API Create group with all current and future users

Im using SDK Admin API to create users, aliases and groups. I would like to add current and future users to any group like Google does in his admin but i cant see any endpoint to do this in his API. Do you know if it is possible? Thanks Edit: To do…
Lorraine
  • 441
  • 5
  • 23
2
votes
1 answer

Discover if calendar room (resource) is bookable through the Google Calendar API

In GSuite, you can set a room (resource) to be viewable by a user but not bookable. This will show up as a crossed out (unavailable) room - see screenshot below. How can you find out if a room is bookable by me through the Google APIs? There doesn't…
Varun Singh
  • 1,676
  • 3
  • 18
  • 25
2
votes
1 answer

Initializing the APIs Explorer

I am an IT also G suite Administrator. When I use API explorer : https://developers.google.com/admin-sdk/directory/reference/rest/v1/users/update I got this error : Error initializing the APIs Explorer Cannot find specified method in converted…
Robert Hua
  • 21
  • 2
2
votes
1 answer

Google Script API understanding

This is a two part question, regarding the Google Script API. First, I can read the SDK/API reference, and execute examples successfully, via the "try now" feature. But, what I am missing a step in understanding when trying to build webApps (with…
2
votes
1 answer

Google Apps Script split('\n') does not work with data from the Goggle Admin Directory

I am retrieving user data via the Google Admin Directory where I stored some data in a customer schema. In one field of this customer data I store a string which contains \n so I would like to split this into an array. But for some reason this does…
zlZimon
  • 2,334
  • 4
  • 21
  • 51
2
votes
1 answer

Google Admin API - Service Account withJSON - 403 Forbidden error

I am trying make the google admin api call for users using service account and JSON Key file from java code. The service account has domain-wide delegation enabled . the client id is authorized for scope -…
2
votes
1 answer

Google API Service Account. Can only see service accounts drive even with Domain Wide Delegation Access

I'm currently using a Google Service Account that has domain wide delegation enabled ( I followed this link https://developers.google.com/identity/protocols/oauth2/service-account, and this link…
2
votes
1 answer

Support for push notifications for Google Directory API OU's and Groups

Currently we are working on creating notification channels and able to successfully subscribe to it and also getting notifications if there are any events w.r.t Users. As per the document in the push notifications it was mentioned that Currently,…
Santosh
  • 21
  • 3
2
votes
0 answers

Has the google oauth API response changed for email scope? The type of email has changed from 'account' to 'ACCOUNT'

We are using google login in our website and spring social library to implement oAuth 2. After getting accessToken , with scope as userInfo.email, we are trying to retrieve accountEmail. spring-social-google(version 1.0.0) is looking for key…