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

g suite directory contacts not deleted

I have used the G Suite shared contacts directory (https://developers.google.com/admin-sdk/domain-shared-contacts/) to delete a bunch of contacts. All contacts were deleted from an API point of view (the API no longer returns these…
kiwichris
  • 319
  • 1
  • 3
  • 10
0
votes
0 answers

Update Google Group posting permissions

I'm writing a script to manage groups, as in the group there are internal domain's addresses and other domain's addresses. I'd like to programmatically enforce that only the internal domain's users can post to the group. I use this code: var groupId…
0
votes
1 answer

Google G Suite Business Reports API configuration

I'm trying to configure Google Service Account (in developers console) to use it in my application to get Reports API. I'm getting error - "Access denied. You are not authorized to read activity records". It seems some issue with configuration. I…
0
votes
0 answers

Google Reports API

I need to create simple Java application for Reports API (https://developers.google.com/admin-sdk/reports/v1/guides/manage-audit-drive) But I can't understand is this Reports available only for business users or also for all users? How can I…
0
votes
0 answers

Chromeosdevices: list API error with page token

We are trying to fetch ChromeOS end points. We use page token to fetch the next page. When the token expires, we renew the token and try to resume polling. But we get error saying page token is invalid. If we do not use page token, we get back page…
0
votes
1 answer

Find and read resource calendars in Admin Directory

Context During a form POST for booking a hotel, I first want to check if we have free rooms in our apartments. I created Resource calendars (with buildings, etc.) via the GSuite admin panel. Now I am testing a bit with some code I found on this…
Jeroen
  • 3
  • 2
0
votes
1 answer

How to get all groups for a user in Google App Script?

Is there any way to get all groups for a user? My code which is not working properly is below; var pageToken = null; var filter= {userKey: "abc@gmail.com"}; //this is a member's email address do { var result =…
0
votes
1 answer

Regular Google Drive/Gmail On-Premise Backup using Google API

Is that possible to on-premise backup my domain user's google drive/gmail regularly using Google API with a service account? If so, which Google API should i use? I have been searching for this problem almost a week. Any help would be appreciated,…
darkfolcer
  • 172
  • 1
  • 3
  • 17
0
votes
2 answers

No refresh token from Google Client SDK in PHP/Laravel

Been racking my brain with this all day. Not sure why I'm seeing this error in production but no error when testing locally. { "message": "refresh token must be passed in or set as part of setAccessToken", "exception": "LogicException", …
sogeniusio
  • 111
  • 3
  • 14
0
votes
0 answers

Google Admin Console use old page token with new auth token

I am accessing Google Directory API to list all ChromeOS devices with maxResults set to 100 and pageToken to fetch the next page. Once the token expires, I refresh the token and try to continue with the page where i was stopped previously using old…
0
votes
1 answer

Google Admin SDK - Create posix attributes on existing user

I can't create posix attributes on existing account in admin.google.com (also known as Google Cloud Identity / Google Directory) using Admin SDK (Directory API). To explain my issue, I will use the API tester :…
Maxolo
  • 1
0
votes
1 answer

Add a member in google group using directory api by a non admin

Is it possible to add a new member to a group, when you are the owner of the group but not the admin user using google app script.
0
votes
1 answer

How can I make transfers using Google Data Transfer API in Ruby

I'm writing a piece of code in Ruby for making data transfers using Google Data Transfer API. I specifically mean this The code I have is as follows: idOldUser = "116170568974079979335" idNewUser = "105318746921076261308" atp =…
0
votes
1 answer

Audit Report API Limit Increase

I need to access Google Docs Audit Activity for my domain. The limit for the same is 1000 records in a single API call. Also, the number of API calls per day is 10K. What is the way to increase the limits for API calls per day? Google Support is…
Jay
  • 1
0
votes
1 answer

Not able to convert google-api-services-admin-directory Organizations To JSONArray. Because of customType value is missing

I'm not able to convert a google-api-services-admin-directory Organization to JSONArray, as the following exception is thrown: Exception message : Missing value at character 38 I have this code: Get user =…