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
2 answers

Google Admin Reports API: Users Usage Report stats accuracy

I am trying to use Google Admin Reports API: Users Usage Report to pull emails received/sent per user per day in our org's google app. When I use Google APIs Explorer to pull my own stats for a particular day and compared it with real situation, it…
megaton
  • 69
  • 1
  • 3
0
votes
1 answer

Get last account activity with Google API

I want get last account activity with google api for installed application. The information like ip address and time from https://security.google.com/settings/security/activity. There is two ways to get this: from json and from google client…
kostap
  • 23
  • 8
0
votes
1 answer

is group's unique id remains unique across multiple domains

We are using Google Directory API to access Domain Groups of multiple Domains. Id of the group is supposed to be unique for a domain. I am wondering if it is also unique across multiple domain. We are thinking to save information of groups in…
Munish Dhiman
  • 511
  • 1
  • 7
  • 22
0
votes
0 answers

Creating an alias sometimes causes a 404 userkey not found when executing right after creating a user?

I've build a java webapplication (java/angular) in Google AppEngine using the Directory API. The goal is to create a user and immediately give it an alias. Create user: POST https://www.googleapis.com/admin/directory/v1/users On a status 200 (user…
0
votes
1 answer

OAuth2 Google Api java/eclipse

I'm looking at [this example]https://developers.google.com/admin-sdk/directory/v1/quickstart/quickstart-java). But I don't want to use that url copy/paste version to auth so I've read that I should use serviceaccount. I downloaded the p12 key and…
John Smith
  • 387
  • 2
  • 8
  • 24
0
votes
2 answers

Need information on Google Apps API

I am looking for information on Google Apps APIs. Is it possible to terminate the user's active session using the Google Apps API? If yes, can you please provide me the details on how to do that. I am using Directory API to access list of groups…
Mark
  • 1
0
votes
1 answer

Possible responses when retrieving the domain's product version - Google Apps Admin Settings API

What are all the possible responses when retrieving the domain's product version? Response example: I'm using this Google Apps Admin SDK: Retrieving the domain's product version docs I can only…
Edu Lomeli
  • 2,263
  • 20
  • 18
0
votes
1 answer

google enterprise license manager api - Unauthorized operation for the given domain

The LicenseAssignments.get api returns 200 OK Request: GET https://www.googleapis.com/apps/licensing/v1/product/Google-Apps/sku/Google-Apps-For-Business/user/ Response: 200 OK - Show headers - { "kind": "licensing#licenseAssignment", …
0
votes
1 answer

directory api - get users using orgName

I have four sub-organizations defined. (/AdminOrg, /subOrgA, /SubOrgB, /subOrgA/SubOrgAA) my directory.orgunits.list query return below data. I store the return array in a variable called orgUnits[]: http://pastebin.com/Kzud6SAq I have 4 users in my…
0
votes
1 answer

Using refresh token with Google directory service API

Is there any way to use a refresh token with Google directory service API? I couldn't find any examples how to do that (I'm using Python). I'm looking for something similar to the following code (this works for Google Adwords API), with previosly…
agerrr
  • 1,253
  • 5
  • 14
  • 24
0
votes
1 answer

Google email audit API Admin SDK

Im going to list my user's email using the email audit API for user abc.so far my code is $xml = "
0
votes
1 answer

Restricting hangouts to be used through different organizations

Helping a company that is using Google Apps to improve its security between different departments, They want to restrict using Google hangouts in Google apps across different organizations on the same domain. I tried easily at first to go through…
0
votes
1 answer

Can apps on Google Marketplace use Service Account authentication for Spreadsheet API and Calendar Resource API?

What we want to do is to use Spreadsheet API and Calendar Resource API and to access to the API with 2-legged OAuth. (Most likely, Service Account Authentication method in OAuth 2.0 is similar method. <2LO To use these API, we tried Service Account…
0
votes
2 answers

Google User Provisiong using Google Admin SDK c# -- Google.Apis.Admin.Directory.directory_v1.cs not found

I tried authenticating with Google Admin Api-sdk But We get some file missings error which should be created by the Dlls, we are using. Even after adding all the recommended dlls after going through many article for the same, I din get over to this.…
0
votes
1 answer

Updating admin account info with PHP using adminSDK

I have to sync account information across 3 different platforms. I wrote a password script that will update a users account information in LDAP, our Student Information System, and in gmail (for edu). I had no issues with older migration api, but…
mr.ellis
  • 1
  • 2