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

Consuming API Workspace for Developers

I'm trying to consume Google's Workspace APIs, but I'm having extreme difficulty with the documentation to create my first code, following the first steps I did the following I created a project within Google Cloud I enabled the Admin SDK API I…
0
votes
1 answer

How to add people to google groups programmatically using google app script?

var form = FormApp.openById('1IErsge8yafg0UOltvhecAMhRd5Yh1VXJdhkI'); var groupID = "mygroup@googlegroups.com"; var formResponses = form.getResponses(); for (var i = 0; i < formResponses.length; i++) { var formResponse =…
abhi
  • 25
  • 6
0
votes
1 answer

problem to configure public key on google audit email api

I need a help! I'm trying to use the google auditing API (https://developers.google.com/admin-sdk/email-audit) Im getting a problem to configure the public key on API (https://developers.google.com/admin-sdk/email-audit/auth#example), receiving the…
João
  • 3
  • 2
0
votes
1 answer

Can I expand the set of fields returned by the Google group members API?

I need to make a Google API call to get specific information about members of a group. The API for fetching group members is described here: https://developers.google.com/admin-sdk/directory/v1/guides/manage-group-members But this API only returns…
0
votes
1 answer

Get general information about google workspace organization

My goal is to have some information about a Google Workspace organization in particular I would need: main domain/domains Organization name Logo of the organization And maybe other similar info. I'm trying to use the SDK offered by google to make…
0
votes
1 answer

Google Directory API - OS version policy compliance

On the Google admin console, when looking at chrome devices, you can see their "OS version policy compliance", as seen in the image below: However, when retrieving a device from the directory API (using…
0
votes
1 answer

For Google Workspace Admin SDK ReportsAPI, is response ordered by time

For the Activities API, is response sorted by time specifically id.time ? If not is there a way we can do that?
Anunay
  • 1,823
  • 2
  • 18
  • 25
0
votes
1 answer

ReferenceError with AdminGroupsSettings

I want to create a very simple script function myFunction() { var group = AdminGroupsSettings.newGroups(); Logger.log(group) } But I have the error ReferenceError: AdminGroupsSettings is not defined. However, my Admin SDK is well added from…
The33Coder
  • 139
  • 7
0
votes
1 answer

Search by value to all Firestore collection and subcollections with admin-sdk in Python

I'm making some APIs that among many things are able to retrieve the respective document via a value. My data structure is as follows Schools (collection) -> Lombardy (doc) -> Milan (collection) -> Milan (doc) - School Test1 (collection) -> 0 (doc)…
0
votes
2 answers

Retrieving values from customSchemas in Google Script

In a Google Workspace for Education environment I want to work with a customSchema in the user's profile in order to automate some administrative tasks. Suppose I have made a customSchema called "housing" in the admin backend. Within "housing" I…
0
votes
1 answer

Backend Error with Google Admin SDK Group Settings having "/" in Group Email Id/Address

i m having issues with GWS API Group Settings when group email (when use as groupUniqueId) having a "/" character as part of the email id. Python code below: service = gws_service('groupsettings') # internal func that initiate the service results =…
0
votes
0 answers

How to check Google Service Account access for a domain?

I have a service account that I have created in a project in GCP. This service account will then be provided access to different domains using Domain-wide Delegation. When the Domain-wide Delegation is set up, I need to control scenarios where the…
0
votes
1 answer

G Suite Directory User creation is failing with error "Invalid Input: primary_user_email"

In order to automate google accounts for our students, I have used google admin-sdk and users:insert…
fcedillo
  • 48
  • 3
  • 10
0
votes
1 answer

Google SDK API - update Workspace user profile data by service account (Not Authorized to access this resource/api)

I am trying to sync our user profiles from our internal SaaS to Google Workspace user profiles. Especially (gender, phone, jobTitle, department). After a long reading, I found out that it is not possible to do by OAuth in the Google cloud project,…
MakoBuk
  • 622
  • 1
  • 10
  • 19