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
7
votes
5 answers

Google Admin SDK: Get a list of groups that a user belongs to

I see that it is possible to list all members that belong to a specific group, as documented here: https://developers.google.com/admin-sdk/directory/v1/guides/manage-group-members#get_all_members But is it possible to get a list of groups that a…
jekennedy
  • 1,192
  • 10
  • 17
7
votes
2 answers

Google Admin Directory User Error

Using Google API .NET Client v1.3.0-beta. I created a console application to test the basics of Google Admin Directory from the sample code for Service Accounts. This should give me a count of all email addresses in the domain. using System; using…
6
votes
2 answers

403 Request rate higher than configured

When I'm adding members to Google Groups I'm receiving a 403 Request rate higher than configured error. This is happening for all applications, including the API Explorer on the Google developer website. Even if I make only a single request in 12+…
Peter Godwin
  • 267
  • 3
  • 12
6
votes
2 answers

Google Admin SDK: You are not authorized to access this API

Since the Google Login Auth is disabled since last week I'm trying to get oAuth 2.0 working with a service account. We want to give users on our internal web application the oppurtunity to set there Out of Office. I downloaded the lastest Google…
6
votes
1 answer

How do I check if a user has 2-factor authentication enabled via Google Admin SDK APIs

I am using the Google Admin SDK APIs to manage users (create/update) in our organization's Google apps account. We allow users to optionally use the 2-factor authentication feature and I'd like to be able to determine if an account has it enabled or…
Phillip
  • 643
  • 6
  • 15
6
votes
1 answer

Received error "Not Authorized to access this resource/api" when trying to use Google Directory API and Service Account Authentication

I'm really struggling with trying to use Service Account authentication to use the Google Directory API (Admin SDK). Using client based three legged OAuth this works (tested here -…
Ron Reiter
  • 3,852
  • 3
  • 30
  • 34
5
votes
3 answers

Get All Calendars in Google Org via Google API

Goal: I'm trying to get all the calendars in my Gsuite org. Problem: I know I can get a list of calendars using CalendarList.list but that's only if the user or service account has all the calendars in its list and even then it's not always accurate…
5
votes
1 answer

Delete custom schema from directory yields error 400

I'm trying to delete a custom schema from my G-Suite directory. GET https://www.googleapis.com/admin/directory/v1/customer/my_customer/schemas?fields=schemas(schemaId%2CschemaName)&key={YOUR_API_KEY} Response: { "schemaId":…
serverhorror
  • 779
  • 5
  • 21
5
votes
1 answer

NodeJS Example - Firebase Cloud Functions - Instantiate an Admin SDK Directory service object

Goal Use googleapis with Firebase Cloud Functions to get a list of all users in my G Suite domain. Question How do I Instantiate an Admin SDK Directory service object. I do not see a NodeJS example, and I'm not clear how to setup and make the…
5
votes
3 answers

This document does not exist, it will not appear in queries or snapshots? Cloud Firestore

I'm quite new to Cloud Firestore (aren't we all?) and I've added some data to my db using the admin SDK in Node.js. It shows up on the console, but under the doc it says "This document does not exist, it will not appear in queries or snapshots." I'm…
5
votes
1 answer

Google Directory user list from an app

I am creating an iOS app for internal use. We have a Google Domain. As part of the functionality of the app, I want to be able to search for all users in that domain. This can already be done in Gmail, the Apple Mail app, and others. I found that…
Explosion Pills
  • 188,624
  • 52
  • 326
  • 405
5
votes
4 answers

Google Admin SDK 403 Not Authorized to Access this Resource/API

I use the following code in a java web application to try to get all users of a group: GoogleCredential credential = GoogleCredential.fromStream(Util.class.getResourceAsStream("[credential_file].json")).createScoped(SCOPES); Directory directory =…
theyuv
  • 1,556
  • 4
  • 26
  • 55
5
votes
2 answers

Google app-engine updating user information getting error 400 BAD_REQUEST

While updating user information using Directory API of Admin SDK getting an error : 400 BAD_REQUEST { "code" : 400, "errors" : [ { "domain" : "global", "message" : "Invalid Input: Bad request for ", "reason" : "invalid" } ], …
5
votes
2 answers

Directory API, Customer UPDATE/PATCH fails with "Invalid Customer language"

I'm trying to use the Directory API to update a customer object, but attempting to modify anything at the top-level results in a 400 (Invalid Customer Language) error being returned. Here's the get of the initial object (some items redacted for…
Gosherm
  • 81
  • 4
5
votes
2 answers

Google Python Admin SDK using Oauth2 for a Service Account (Education Edition)-"oauth2client.client.AccessTokenRefreshError: access_denied" exception

I have been trying to get the Service Account authentication working for the Google Admin SDK for a few days now to no avail. I am using the google-api-python-client-1.2 library freshly installed from Google. I have been following Google's…