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

nodejs client for google resource calendar APIs

I am working on a functionality where I need to fetch information about the meeting rooms which are treated as resource calendars. I am using googleapis node js client for other calendar related APIs, for e.g. events list, insert. I'm not able to…
0
votes
2 answers

Another 401 when impersonating super-admin using service account with Admin SDK

I'm attempting to access the Admin SDK Directory API using a service account with domain wide delegation and the REST API. I can obtain a bearer token successfully when not impersonating a user, but with I attepmt to impersonate a user with a "sub"…
Hinchy
  • 683
  • 2
  • 7
  • 19
0
votes
1 answer

How to retrieve groups and members data from G Suite Hosted Domain

I successfully implemented Google Sign-in button where I log in using Gmail accounts from a hosted domain (HD) of mine: with Javascript I retrieve user's data, but the only infos about his/her HD is just the name (by using getHostedDomain()). So I…
0
votes
2 answers

Google Directory API and Admin SDK

I face this error: 403: Not Authorized to access this resource/api when I try to access a list of users from the Directory API. I've followed the steps found here. The domain on google admin console has the same name as the organization in the…
Vincent
  • 483
  • 4
  • 16
0
votes
0 answers

Google Admin SDK - Service account or Oauth client secret - to add users to group

I used JAVA Quickstart example and modified it a little to add users to the group. I have 2 questions here i) I have created OAuth 2 client_secret and Service Account credentials. I do not know the difference between these two. I read service…
0
votes
1 answer

Access Employee ID in google-admin-sdk

I am currently working on a simple Java application to query my organization's G Suite users. I am using the Google-provided Java API (Directory API). I am currently able to pull users, and their corresponding attributes using statements like the…
Chris
  • 23
  • 1
  • 4
0
votes
1 answer

How to secure Admin SDK Keys on heroku

I am using Google's Admin SDK with my Node backend for auth. Since I am planning to put it on heroku I want to secure my private data. As much as I know, it's a good idea to secure things like the private key. In my project, I import the config…
Fabio ha
  • 553
  • 1
  • 8
  • 29
0
votes
1 answer

Google Login Audit Increased lag time

I am trying to get login events for domain users of a customer. Following is the api , i am using -- GET https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/login?startTime={startTime}&maxResults=1000 I am not getting any…
Kunal Chawla
  • 119
  • 1
  • 8
0
votes
0 answers

Google Calendar and Admin Directory APIs

Using Admin Directory API, I can retrieve the rooms details by making a call in Google Apps Script. Using something like this: var res = AdminDirectory.Resources.Calendars.list(calendarId); Then going ahead to loop over it and retrieving the…
0
votes
2 answers

Re-activate a suspended G Suite subscription at the end of its annual commitment interval

We have a system that manages our G Suite Reseller via the API. Given a G Suite subscription that has been suspended because it has already passed its annual commitment period (and its renewal setting is set to "CANCEL" i.e. be suspended after its…
0
votes
1 answer

Slack and Google Admin API integration

I am trying to integrate Slack and Google Admin SDK. Basically, I want a user to be able to book a room through their slack channel. I followed these directions to be able to test post through Slack's API:…
0
votes
1 answer

How to deploy Google Admin SDK to Azure cloud service

Following the ASP.NET MVC example here, I've implemented the Google Admin SDK in my web application so that I can get a list of organizational units and/or users associated with an organizational unit using the Directory service. Everything works…
0
votes
0 answers

Google Reseller Error Invalid Postal Code

Using G Suite Reseller API to create a new customer account ([/reseller/v1/customers][1]). Most accounts work successfully, but every now and then I get the following error, and it seems to happen primarily for non-USA postal codes: Error calling…
ronan
  • 9
  • 2
0
votes
0 answers

Problems when creating a new user via the API google admin sdk

I require the ability to create new email addresses frequently, however I'm prompted with the verify your account window, when signing in to the gmail account. This is a hindrance to what I'm trying to achieve. Is there a way to bypass this window,…
Tom Lee
  • 11
  • 1
  • 2
0
votes
0 answers

Directory API users.list returns 403 with service account

I'm trying to use a Service Account to programmatically create users with the Admin Directory API. The service account has been granted domain-wide delegation and has been authorized by an admin with the…