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

Google Scripts -- Domain Not Found When Adding User

I created a script for my Google Form that will add a user to Google Admin. It was running fine yesterday, but today when I run it, it gives met the following error: GoogleJsonResponseException: API call to directory.users.insert failed with error:…
JAck28
  • 899
  • 4
  • 15
  • 40
0
votes
1 answer

Google Drive API - insufficientFilePermissions error when downloading a file

I am working on a project which downloads files using the google drive api. I am using a service account that has all the drive permissions (https://www.googleapis.com/auth/drive). I am able to download some files without any problems, but sometimes…
brad mcallister
  • 419
  • 2
  • 13
0
votes
2 answers

Insert an Org Unit with Google Apps Script getting Bad Request error

I have followed the API documentation to insert an org unit but I am recieving a "Bad Request" error. Here is a snippet of my code. function orgUnitCreate() { var resource = { name: first+' '+init, parentOrgUnitPath: '/Students/'+unit, …
0
votes
1 answer

How to execute Data Transfer API?

I have few accounts where I need to transfer the ownership to another account. I have the list listed in google sheets with all the email addresses. I am using the code below to hopefully execute it but I am not sure what to use to execute the…
0
votes
1 answer

whether service accounts need additional pricing?

Does google charge for service accounts? Or does service account need additional or specific license? No related description found in the doc. Thanks.
june an
  • 73
  • 6
0
votes
1 answer

Google Admin SDK Reports API Activity OAuth Token Audit Events

The problem: I get an empty result when accessing the activity audit oauth token with eventName=activity in google-admin-sdk. What I've tried: GET…
0
votes
0 answers

Moving Chrome Devices to different Org Units: API vs Manual change

Does Google use it's own API when using the Google Admin Console to change a chrome device to a different Organizational Unit (OU)? A school district we support claims that they are having network issues when our service account uses the Directory…
Austin Arnett
  • 117
  • 1
  • 10
0
votes
2 answers

Issues when querying Google Workspace Enterprise License Manager API

I am developing a Python 3.7 app which aims to be deployed on Google App Engine. The goal of this app is to query the Google Workspace Enterprise License Manager API in order to retrieve the list of users per Google Workspace license. So to…
0
votes
1 answer

What is the fastest way to increase my mail quota?

We are using Google App Script tied to a Google Sheet. We use doPost to add form data to the Sheet and GmailApp.sendEmail to send email notifications to the people who need to be notified. Unfortunately, we hit our daily quota far faster than we…
0
votes
0 answers

what are the google APIs to manage policies to block/restrict add-in(s) in google/Gsuite

I have a requirement to block/restrict specific add-ins for user(s) in accessing. I could able to block add-ins using google admin portal ( Security -> API Control), which solves the problem but instead of doing this manually, I would like to…
0
votes
0 answers

Setting Manager role on multiple members in one json request

I am trying to assign Manager role to multiple members in one call. They're comma separated in the json. It sets for the first user in the comma separated values but it doesn't do for 2nd user. I am not sure where am I going wrong with this. I'm…
0
votes
1 answer

How to Get Archived User license using License Manager

Is there a way to read "Archived User" (AU) license using License Manager API? If so, please provide an example of the request. Thank you.
0
votes
1 answer

Unable to insert sub-OU via admin-sdk - Invalid Parent Orgunit Id

Environment details OS type and version: Fedora 32 Python version: 3.7.9 pip version: pip 19.1.1 from /usr/lib/python3.7/site-packages/pip (python 3.7) google-api-python-client version: 1.12.5 Steps to reproduce Attempt to add any sub-OU with the…
0
votes
1 answer

Alert Center API Scope issue

According to the documentation: https://developers.google.com/admin-sdk/alertcenter/reference/rest/v1beta1/TopLevel/getSettings#authorization-scopes And Also the discovery…
0
votes
1 answer

Inconsistent results when listing groups an external account belongs to

Our Google domain has groups (synced copies of our Active Directory email listservs/distribution groups) that have a lot of external accounts (currently kept as contacts in Active Directory). As part of an intranet site I'm building I'm trying to be…
Andy
  • 25
  • 5