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

Are there different Javascript objects in Google App Script?

I had a strange encounter when I was trying to update user data with Google App Script via the Admin SDK Directory Service I wanted to add some values for a customschema like this: var myCustomschema = {}; myCustomschema.someField = "foo"; …
zlZimon
  • 2,334
  • 4
  • 21
  • 51
0
votes
1 answer

How to properly handle Google SDK errors in Google App Script

I am writing a google web app which uses the Admin Directory a lot. However I was wondering how the error handling should be done since I do not get a proper error object back when a request to the api fails. Example: I want to check if a custom…
zlZimon
  • 2,334
  • 4
  • 21
  • 51
0
votes
1 answer

Is it possible to update a group's auto-reply settings using the API?

I'm using Gmail.Users.Settings.updateVacation to update our customer service rep's vacation responses automatically over the weekend and after-hours, so our customers who e-mail when we're not in the office get an informative message of when they…
itnAAnti
  • 652
  • 8
  • 17
0
votes
1 answer

Getting a 403 trying to list directory users

I'm trying to access my organisations directory list via a standard users account using the following endpoint https://www.googleapis.com/admin/directory/v1/users with the viewType set to domain_public, my organisation set and the…
0
votes
3 answers

unable to compare password using firebase admin sdk in python

I am using admin-SDK of firebase in python I have created a new user using the following code user = auth.create_user( email=email, email_verified=False, password=password, display_name=name, …
0
votes
1 answer

Api Create user WEB_LOGIN_REQUIRED

When I try to create a user using Api Admin SDK, this user is created but is suspended. The reason is WEB_LOGIN_REQUIRED. When the user try to enter in this account have to verify this account using phone sms. These users are students, so they dont…
0
votes
0 answers

G Suite Users:get and Users:list resources are not updated at the same time

I am currently using the G Suite Admin SDK API to retrieve user data. I want to check how long it takes for the user properties/fields to update. After some checks I have realized that the User resources provided by the APIs Users:get and Users:list…
Atenea_v10
  • 87
  • 1
  • 8
0
votes
1 answer

How to prevent unnecessary G Suite API data consumption?

I am currently consuming data from the G Suite API. An inconvenience I have found is that for some of the APIs the number of resources available might be quite large. For instance, when I consume the Users:list API…
Atenea_v10
  • 87
  • 1
  • 8
0
votes
1 answer

Gmail API "Delegation denied for email" error while reading delegating email from a superadmin account

I have been trying to get emails from another user in my domail in order to migrate it, using the google nodejs library. My account is superadmin and my API has wide-domain delegation permission enable with the following scopes:…
Raul Gomez
  • 11
  • 1
  • 3
0
votes
1 answer

Accessing Google API from aws lambda : Invalid OAuth scope

I am still struggling with Google's terminology of apis and services but my goal is to have automated functions via aws lambda which act on a G Suite Account (domain?) or more specific on users of this domain. For now I just want to list all users…
zlZimon
  • 2,334
  • 4
  • 21
  • 51
0
votes
1 answer

Directly Adding Member to Group - OAuth 2.0 Confusion

I'm attempting to allow all users to add themselves to my Google Group via js + html form. I'm using the group to send out newsletters. I currently don't have access to the admin user account for G Suite so I'm unable to see what options are…
0
votes
1 answer

Identifier field are not included in Activities: list Meet report

Good day everyone, was trying to use the Admin SDK Reports API to get info about Google Meet. want to see who attended and how long does each person in the conference. However, I cannot seem to get the email address of each attendee instead I only…
Jerald Feller
  • 23
  • 1
  • 7
0
votes
1 answer

google.auth.exceptions.RefreshError: ('access_denied: Account restricted' using a domain wide delegated account

I'm trying to use domain wide delegation on a service account to fetch some info from the admin sdk to generate reports. i got an already working codebase which i use with a gsuite domain. i wanted to use that same code to generate reports for…
0
votes
1 answer

Google Meet Audit Logs - IP of Unverified User

is there a way to retrieve the ip addresses of unverified accounts joining a Google Meet session from the audit logs? Right now, the usernames of these unverified accounts are shown but not their ip addresses.Screenshot of audit log
0
votes
1 answer

Google PHP Client API - Error 400 Admin SDK

I'm trying to get the groups a user is associated with on a google GSuite for Education. I've started following the tutorial to list all the users related to the association, but I got: error 400 - "message": "Invalid Input. So far I've created a…