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

Unable to access Users Watch API (Status 403 returned) although Users List API works normally

I used Service Account key with scope (https://www.googleapis.com/auth/admin.directory.user.readonly) to access Google Directory API Users. With the same setup as below, I can access Users List API (link). But when trying to make request to Users…
NDC00629
  • 33
  • 4
0
votes
1 answer

google groups - update a member's post settings via apps script

I wrote a simple apps script that reads users from a sheet and then adds them to one or more default groups in my organization I'd like to set their Post properties to Not allowed - those groups must be read only for end users can't find on G Suite…
0
votes
0 answers

User Usage Report - Gmail Parameters not displayed/undefined (Google Admin SDK - Reports API)

I am using this code to retrieve the User Usage Report. I am able to get the 7 parameters out of 12. Questions: Is it okay to combine accounts and gmail parameters? If yes, how would I fix the code to display the same format as the "Last…
0
votes
1 answer

Why Google API (Directory List) keeps returning 403? Are there evolutions? New Versions? GPDR / LGPD issues?

I have an application that suddenly stop to work due to the users list (https://content.googleapis.com/admin/directory/v1/users?orderBy=email&viewType=domain_public&maxResults=200&customer=my_customer&domain=XXX&key=XXX) keeps returning: { …
0
votes
0 answers

Why does the Google Reports API Java login report always returning is_suspicious=null?

There seems to be an issue with the Reports API not returning the correct value or is_suspicious in the Activities.List login report. The flag always returns null when I use the api programmatically or when I download the report from the Google…
0
votes
1 answer

Google.APIs Change Group Owner

Looking for the proper code to change a Google email group's owner... what I have currently (not working). The credential/service are all fine, as I'm using them to do a bunch of other GoogleAPIs stuff which is working correctly. I'm just not sure…
0
votes
1 answer

Google User Administration with Google Admin SDK, vb.net and service account working in development but not production

I need to use the Google Admin SDK Directory Service to add users to our gsuite domain, I am using a service account and language is vb.net. My application works great in visual studio, but as soon as I publish it to my IIS server I get crickets. I…
0
votes
0 answers

Google API Call: "HTTP method PUT is not supported by this URL." What might be wrong with the URL?

Response: HTTP method PUT is not supported by this URL

HTTP method PUT is not supported by this URL

Error 405

,…
joshgoldeneagle
  • 4,616
  • 2
  • 23
  • 30
0
votes
1 answer

API Endpoint For Google Admin Reports Meet Feedback Score

I'm looking for an endpoint for the Google Meet Feedback Score. I've implemented the Admin SDK and I can retrieve livestream_watched and call_ended but neither includes a Feedback Score. If I check out the Meet Quality Tool there is a way to filter…
Brent Marshall
  • 125
  • 1
  • 10
0
votes
2 answers

Google Admin SDK: How to modify the feature instances of a Calendar Resource

Source: https://developers.google.com/admin-sdk/directory/v1/reference/resources/calendars When fetching a resource calendar the structure of featureInstances is defined as list of objects but this is not marked as writable. Instead there is a…
Steve H
  • 946
  • 9
  • 22
0
votes
1 answer

When calling Google Admin Directory API to write recovery email, I get response status code 400 BAD REQUEST

Here is my code: Here is the response: 2020/09/14 12:19:51.425: INFO Results for adding ppsEmailAddress as recovery email: {data=[object Object], finalURL=https://www.googleapis.com/admin/directory/v1/users/ttestaccount@pps.net,…
joshgoldeneagle
  • 4,616
  • 2
  • 23
  • 30
0
votes
1 answer

GSUITE users.delete and transfering data

When I delete a user using the admin console, I have the possibility to transfer users data before deleting. Using the Users.Delete api (in C# winforms application) I don't have this possibility. Is there perhaps a way to perform a data-transfer…
Mario Favere
  • 490
  • 4
  • 9
0
votes
0 answers

userUsageReport() not returning information for a user

I've been trying to use Admin SDK Reports API through google-api-python-client to audit the Drive usage of my G Suite users. I need to know how many quota they have used on a week. The problem is that when I try to search for an specific user that…
0
votes
1 answer

The users watch function in Google Admin Directory SDK, suddenly throws exception for wrong argument projection

I have a cloud function on GCP which runs for more than 18 months. Suddenly a week ago it stopped working. The code import googleapiclient.discovery adminDirectoryService = googleapiclient.discovery.build('admin', 'directory_v1',…
nheimann1
  • 2,348
  • 2
  • 21
  • 33
0
votes
1 answer

Last Password Changed Time Stamp from Google Admin API

I am trying to get the last password change time stamp using the below api query https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/admin?eventName=CHANGE_PASSWORD&email=xyz@compamy.com.au But it is returning for all the…
Jothi Vignesh
  • 45
  • 1
  • 6