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
0
votes
0 answers

google-API-Client returning empty response from google admin sdk

I'm trying to pull users from google admin sdk. I have the following set up: function public function getGoogleUsers () { putenv('GOOGLE_APPLICATION_CREDENTIALS=' . resource_path('assets/keys/X-X-X-X-X-X-X')); $client = new…
sogeniusio
  • 111
  • 3
  • 14
0
votes
1 answer

How do I get Gsuite account type via google API

I am building google apps for marketplace. My app support only few Gsuite account type. So, While somebody signup to my app. I wanted to alert them their google account is valid for app or not. To do this I require some API from google which check…
sandeepsure
  • 1,113
  • 1
  • 10
  • 17
0
votes
0 answers

Determining if calendar resource legacy data is a meeting room

How can one determine for legacy data if a returned item is a meeting room? The calendar resource documentation says that a resourceCategory will be set to "CATEGORY_UNKNOWN" for legacy data. This means the typical check of resourceCategory ==…
0
votes
2 answers

Fetch the details of all suspended users in G-suite Admin SDK

I am trying to extract the details of all suspended users in G-Suite Admin SDK, for which I wrote a query in Google Apps script: function fetchUser(){ var pageToken; var membersList = AdminDirectory.Users.list({ domain:…
0
votes
2 answers

Creating new User Google admin sdk python

I'm getting an error that google doesn't recognize the user names in the json. I cannot find a way to include the http header application/json. The return URL gives me another error code but I pass login authentication. My code: from __future__…
dpo
  • 1
  • 3
0
votes
1 answer

GSuite - Last email activity

I am trying to create a GSuite integration using GSuite Admin SDK that will fetch a list of users and the datetime of their last activity. I am able to fetch last login time, but I can't find a way to find the last email activity for a user that…
shtrule
  • 658
  • 10
  • 23
0
votes
1 answer

Determine G-Suite Edition

I would like to have different pricing and licensing options for a Drive enabled app I am developing, based on the G-Suite edition that the user's account is provisioned with. What API do I use to determine the Edition used for the currently logged…
0
votes
1 answer

Is there a way I can programatically control the Google Chrome policies that are found in G Suite Admin Console?

I'm looking for an API or a method that will allow me to programmatically control the Chrome polices that are found under the Chrome Device Management in G Suite Admin Console. I'm looking for a way that will allow me to control the Chrome policies…
0
votes
1 answer

Trying to delete Orgunit in Admin Directory API always returns 404

Same problem whether I try the API Explorer https://developers.google.com/admin-sdk/directory/v1/reference/orgunits/delete#try-it or when using the .NET API. I have a simple integration test that creates a new Orgunit + User under that orgunit. Then…
zenocon
  • 1,597
  • 1
  • 17
  • 24
0
votes
1 answer

Adding first user to newly provisioned customer through reseller API not allowed

We are setting up an easy way to provision new G Suite customers and our project is already capable of creating customers and the respective subscriptions. But users only get some welcome mail from Google and are being told to login. When trying to…
0
votes
0 answers

Get the serial number of the most recently used device for Gsuite user

I work at a school that issues Chromebooks to all students. I want to make an app to help manage and inventory devices in GSuite and automate the process of issuing new devices to students. I want to be able to hand out the devices, ask the students…
jembe
  • 61
  • 7
0
votes
2 answers

How to create GoogleCredential object referencing the service account json file in Dataflow?

I have written a pipeline to extract G suite activity logs by referring the G suite java-quickstart where the code reads client_secret.json file as below, InputStream in = new FileInputStream("D://mypath/client_secret.json"); GoogleClientSecrets…
Jaison
  • 715
  • 1
  • 10
  • 33
0
votes
1 answer

Error Code 413 encountered in Admin SDK Directory API (Users: patch)

I am a G Suite Super Admin. I have set up Google Single Sign On (SSO) for our AWS accounts inside our G Suite. As we have several AWS accounts, we need to run the "Users: patch"…
0
votes
0 answers

Email Settings API and OAuth2 for Apps Script: You are not authorized to access this API (Error 403)

I understand that the Email Settings API is deprecated and will be turned down in Fall 2018. However, I need to create a script that delegates domain users (as Administrator) and the new Gmail API doesn't support the delegation feature yet. I used…
0
votes
1 answer

GoogleJsonResponseException: Not Found error when using Gmail API sendAs.patch method to change signature for user on domain

I want to update signature of a domain user via Google Apps Script as G Suite administrator. I followed Mike's example here using HTTP Request to the Gmail API and was able to it to work. Here is the summary what I did: Enabled Gmail API in Advance…