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

Vision product search: client.createReferenceImage method error "Error: 3 INVALID_ARGUMENT: Invalid image format"

I created a cloud function that downloads an image from a giving url and uploads it to firebase storage async function downloadImageJimp(fileId,imageUrl) { const image = await jimp.read(imageUrl); await image.resize(900, 900); …
0
votes
1 answer

What is the best way to allow a third party to access Alerts API data?

Is there a way to allow a third party to access Read-Only data from the Alerts API by giving them credentials? So far I've only read about allowing domain-wide delegation to allow an organization to query their own data using a service account. What…
Zoombear
  • 101
  • 1
  • 5
0
votes
1 answer

G Suite Directory API: Fetch an access token from SAML bearer assertion

From the Google Doc, I see below are the options to fetch an access token for the directory API Web server applications i.e Client Credentials Installed applications (Mostly same as Client Credentials approach which we currently support but with…
0
votes
1 answer

Google Directory API - Search Users - Exclude child OrgUnit

This is my code. var oupath = '/'; listObject = { customer: 'my_customer', query: "isSuspended=false", query: "orgUnitPath=" + oupath, maxResults: 100 } As stated on G Suite Admin SDK ressources site, 'orgUnitPath=/' returns all…
0
votes
2 answers

How to get a list of G Suite users which are using Google Apps Script?

I would like to find out, is there any chance to get a list of G Suite users (of one domain) who are using Google Apps Script?
0
votes
0 answers

How to remove suspended users who have been suspended for 6 months

I would like to create a script that I remove suspended users who have been suspended for 6 months. I have this code, but this code only removes the users. function deleteUsers() { var ss =…
0
votes
1 answer

Google Meet: is the meeting nickname available via the audit log API?

I'm entering a meeting nickname (Test Meeting) for a Google Meet meeting. However, I'm not able to find the meeting nickname in the response from the audit log API. Is there another API where this information is available?
ck1
  • 5,243
  • 1
  • 21
  • 25
0
votes
0 answers

Request suddenly requires the Admin SDK API--didn't before?

My organization has a project that in the past has been able to function without issue with just the Google Drive and Google Picker APIs. Recently, (within the last few weeks?) I now get 403 errors that enabling the Admin SDK API is required. Admin…
0
votes
0 answers

API Endpoint for Creating Users in G Suite (with Signup URL)

Is there an API endpoint that generates signup links for new G Suite users to sign up and set their own passwords upon Account creations instead of the current flow? We're using the following endpoint which seems to only allow us to Set a default…
Allan Tan
  • 1
  • 1
0
votes
1 answer

List users as non admin with custom fields

As per the documentation, I should be able to get a list of users with a custom schema as long as the field in the schema has a value of ALL_DOMAIN_USERS in the readAccessType property. That is the exact set up I have in the admin console; Moreover,…
Morfinismo
  • 4,985
  • 4
  • 19
  • 36
0
votes
1 answer

How can I get manager's value via admin SDK

I'm trying to use the below function function getuser() { var userEmail = 'xxx@xxx.com'; var user = AdminDirectory.Users.get(userEmail); Logger.log(user.relations); } I can get [{type=manager, value=yyy@xxx.com}] If I only need output…
Key Zhou
  • 3
  • 2
0
votes
1 answer

admin sdk delegate email error 403 "The caller does not have permission"

When trying to delegate a user's email inbox access to another user, a HttpError 403 occurs and says "The caller does not have permission". What is going on? entered in: gam user marc delegate to anitha@rainforestapp.com ERROR:
0
votes
1 answer

About administrators who can use admin-sdk

https://developers.google.com/admin-sdk/directory/v1/quickstart/python Is the "Google account for that domain with administrator privileges" mentioned in this prerequisite a super administrator? https://support.google.com/a/answer/2405986 Or are…
Yuki
  • 1
0
votes
1 answer

API Gmail in NodeJS: (node:14592) UnhandledPromiseRejectionWarning: Error: Delegation denied

I'm in real trouble with GMAIL API, here is my error: (node:14592) UnhandledPromiseRejectionWarning: Error: Delegation denied for ADMIN_EMAIL Here is my code, I want to change my signature with the gsuits admin of the domain at first. When i tried…
0
votes
0 answers

Google Directory API POSTing new user is suspended because of password

The application I am developing in JAVA posts user using Google client libraries: 'gsUser = service.users().insert(gsUser).execute()' The user is created but is suspended by Google within a minute. The reason is : 'Google has suspended an account in…