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

Orika Object mapper not mapping Lists

I am using an object mapper called Orika, and I have some doubts regarding how it works or am I doing anything wrong here. Following are the…
smootherbug
  • 129
  • 12
0
votes
0 answers

Is there an API to Extract Billing/Payment data from G-Suite Basics?

Payment Plan Dashboard This is a dashboard for payment plan details for G-Suite Basic subscription. Is there a Google API to extract the payment details?
DeeP
  • 79
  • 2
  • 6
0
votes
0 answers

Admin SDK - Reports API - Google Drive: does not return ipAddress sometimes

Based on Google Documentation, the Activity that is returned by Reports API, should contain ipAddress: ipAddress (string) IP address of the user doing the action. This is the Internet Protocol (IP) address of the user when logging into Google…
0
votes
1 answer

Google Admin SDK - Directory API - Cannot find how to set group properties such as "Who can join group" or "Who can post"

I am using the Google Directory API for creating groups (see the reference here: https://developers.google.com/admin-sdk/directory/reference/rest/v1/groups/insert) I can create a group just fine but I cannot find where I can set properties for the…
alefauch
  • 31
  • 1
  • 3
0
votes
1 answer

Reset a Managed Chrome Device with SDK using Google Apps Script

I'm attempting to create a dashboard for admins to allow them to reset a chrome device managed by GoogleAdmin using google apps script. I don't see any way to perform a reset using Admin SDK API. Can this be done?
JAck28
  • 899
  • 4
  • 15
  • 40
0
votes
0 answers

Google Admin API - Moving User to Different OU

I've seen code snippets and answers for setting a user to an Org Unit (OU) during user creation, but nothing regarding moving a user from one OU to another after it's been created. NOTE: Prior to this I retrieved the user I wanted to modify, which…
Dymas
  • 122
  • 9
0
votes
1 answer

Google Workspaces Users Drives API to watch activity with files

I know how to use Google Drive API to watch user's activity with files. For that I create 'changes' objects with that url: drive/v3/changes/watch. But how to deal with Google Workspaces API? As an admin, I want to watch for all users' drives…
goodgrief
  • 378
  • 1
  • 8
  • 23
0
votes
1 answer

What does the max packet loss metric mean in the Google Meet audit log?

I'm looking at the docs for the audit log here. There is a metric for video_recv_packet_loss_max, which claims to be "the maximum packet loss for received video streams (percent)". Is packet loss measured every X seconds and then they takes the max…
0
votes
0 answers

Newly added users are not showing up For GSuite

I am using the GSuite Admin SDK, Directory API (https://developers.google.com/admin-sdk/directory/v1/guides/manage-users) to add and list users, After adding a new user (using this endpoint: https://www.googleapis.com/admin/directory/v1/users) I try…
0
votes
0 answers

.NET Core Web API + Google.Apis.Admin.Directory.directory_v1 - scope issue while attempting to read chromeos devices

Our app attempts to read chrome devices from Google Workspace using the following code. IAuthorizationCodeFlow is created as follows: var flowInitializer = new GoogleAuthorizationCodeFlow.Initializer { ClientSecrets = new ClientSecrets { …
0
votes
2 answers

Uncaught TypeError: Cannot read property 'signIn' of null (When running the code on localhost!)

I ran this code on "js.do" and it worked without any issues. When I ran it on a localhost, however, I got the following error: "Uncaught TypeError: Cannot read property 'signIn' of null".
0
votes
1 answer

401: Access denied. You are not authorized to read activity records

I am trying to test https://admin.googleapis.com/admin/reports/v1/activity/users/{userKey or all}/applications/{applicationName} in the browser using the API explorer utility but I am getting below error. { "error": { "code": 401, …
Mohit Tater
  • 453
  • 1
  • 6
  • 10
0
votes
0 answers

update and delete members from the group list in Google Apps not working anymore

This PHP code below has worked for years but since some days ago it has stopped working and I get an error which I show below The purpose of this code is to update and delete members from the group list in Google Apps. I searched a lot on Google but…
0
votes
1 answer

Need help explaining some data points from Google API

I have been creating an automatic report generation script that will take data from a user usage report and put into a google sheet. My script has been running fine so far but the data that I get back seems a little odd to me. I generate reports…
0
votes
1 answer

How to retrieve only the number of seats for all the subscriptions of my customers? (Google Workplace Reseller)

I am using the following JS code to retrieve seats details for all the subscriptions of my customers. gapi.client.reseller.subscriptions.list() .then(function(response) { // Handle the results here (response.result has the parsed body). …