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

In Google Apps Script is the command “AdminDirectory.Groups.insert(group)” considered to be a post request?

In Google Apps Script I am calling the G Suite Admin SDK Directory API using the command AdminDirectory.Groups.insert(group). Is this considered to be a POST request? I’m wondering because I know there are implicit ways of making POST requests where…
0
votes
1 answer

Domain Not Found

I'm trying to consume this API:https://developers.google.com/admin-sdk/directory/v1/reference/resources/buildings/list?authuser=2 scopes are ok, and also I can get correctly the Token When I try to list the buildings, this error appears, as API…
0
votes
0 answers

Calling Google Admin SDK from Google Cloud Functions

I am attempting to use the Google Admin SDK to read user data within cloud functions. I am developing this on a local machine then running a Google Build that deploys the cloud function. How can I initialize the Admin SDK in python using a key (or a…
0
votes
1 answer

What is best way to authenticate to G-Suite , OAuth for Service Account or OAuth for server side web app

I am building an web application , which will connect to g-suite for fetching all users in g-suite domains . I have gone through G-Suite OAuth documentation https://developers.google.com/identity/protocols/OAuth2 , I am little confused in between…
0
votes
1 answer

Google Admin SDK: How to use the service account email instead of a privileged user's for retrieving G Suite logs?

I am using a serverless Python function for retrieving G Suite logs. I have done the following to authenticate against Admin SDK: 1) Created a project 2) Created a service account with the Project->Owner role 3) Create a private key (JSON) file 4)…
N Altun
  • 95
  • 1
  • 2
  • 9
0
votes
1 answer

GSuite marketplace Listing with Admin SDK + SERVICE ACCOUNT

I brought up a GSuite Marketplace Listing with Service account created and Domain Wide Delegation enabled. I want to retrieve the users and orgunits of the customer. Created a new Google Cloud Project Enabled 'Admin SDK' in the project Enabled…
0
votes
2 answers

Getting 400 invalid_grant on google admin sdk api with golang. Any suggestions?

I am trying to work out a golang script that uses my service account to manage my google domain. I get an error when I try to do a simple user list: 400 invalid_grant. It appears that I am using my service account correctly(?), and my service…
ad34
  • 1
0
votes
0 answers

How to Insert users in Google Groups on Python

I cant found any documentation for my question. A just found: https://developers.google.com/admin-sdk/directory/v1/reference/members/insert But it doesn't work for me, example: group_result = service.groups() .insert(body={ …
0
votes
2 answers

How to get everyone's Gmail with G-Suite Admin SDK Directory API?

I have an administrator account of G-Suite,I use this code to get gmail address of my company: from __future__ import print_function import pickle import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import…
user9270170
0
votes
0 answers

Push Notification lag time

Do push notifications, https://developers.google.com/admin-sdk/reports/v1/guides/push, have the same lag time as querying for login events? In other words, if I set a push notification for login events, will I wait 1-2 days to receive POST requests…
myjay610
  • 83
  • 5
0
votes
1 answer

Are there any restrictions on using Google Directory API batch-updates feature?

I created a new group through Admin control panel and use Directory API to add new members in bulk, using batch-update, to the tune of 1000 users. The documentation states that it should be valid. You're limited to 1000 calls in a single batch…
0
votes
1 answer

Just check for user's Google organization in JavaScript and then display content?

I'm trying to figure out how to use Google's API service, and I have a client and API key for Google OAuth. Specifically, though I want to check a user's organization, and then echo out some info for them. I understand that that info will be visible…
Widdles
  • 153
  • 3
  • 12
0
votes
0 answers

Directory users update clearing fields not included in resource

Google's documentation states that Users.update will only update fields included in the userResource object. https://developers.google.com/admin-sdk/directory/v1/reference/users/update In my script, I am able to submit updates successfully, but…
0
votes
1 answer

Client SDK and Admin SDK differences in firestore queries

I can't get my query to work when running it in Firebase Functions. It works perfectly on client side but not in Functions. Wonder if there is a way to make it work with Admin SDK as well. I'm I doing something horribly wrong with my…
0
votes
1 answer

How to escape a space character in the field orgUnitPath in the search parameter in the users.list method of the Directory API

I'm trying to write a simple python program that uses admin-sdk (Google Directory API) to search for all users within a certain OU. The problem I encounter is that there is a space character in one of the containers and my code breaks down at this…
M Azim
  • 11
  • 2