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
0 answers

Google Resource Calender API forbidden

I maintain an application that accesses calendar, tasks, etc. of Google Apps users. I have no trouble getting OAuth 2 working for that data. Now I'm trying to add access to calendar resources, but when I GET the appropriate URL, the result is http…
Jeff McKay
  • 161
  • 2
  • 16
0
votes
1 answer

Is there a way to search from the list of groups in a domain by a non-admin user?

The Directory API throws a 'Not Authorized to access this resource/api' error when I try to list the groups in a domain as a non-admin. But gmail autocompletes the group names (which means it is able to retrieve the list of groups) for non-admin…
0
votes
0 answers

Google Admin SDK - add group to another group using Java client API

I can add a member to a Google Group like this: directory.members().insert(, ).execute() If I want to add a group to the group instead of a member, how do I do it? I can retrieve a Group reference like this: Group myGroup =…
Chris Halcrow
  • 28,994
  • 18
  • 176
  • 206
0
votes
2 answers

Google Api + List members of a group with python

Well, basicaly I'm lost with this task. I need to get all members of a group with the api google privedes. I'm starting with gmail quickstart example, first I have configure Api project and the OAuth client. My first test was to see all the messages…
0
votes
1 answer

why am i getting Missing required field: memberKey when running AdminDirectory.Members.remove(groupEmail, userEmail);?

I am running a script (adapted from https://developers.google.com/apps-script/advanced/admin-sdk-directory) in a sheet to add/remove email addresses to a domain group. The insert works (so the authority/credentials work) but the remove throws an…
0
votes
1 answer

Optional Query Firestore

While using Angular Firestore we can use optional queries like this: this.afs.collection(this.databaseCollection, ref => { return query ? query : ref; }) Is there something like this for the Admin SDK (firestore) as well? Or do I need to create a…
0
votes
1 answer

Status attribute for external group membership

I have G-Suite group containing external users (from gmail.com). When I call Get all members API, until 2018-12-17 google returns status attribute for all members, but now it's empty for external users: { "kind": "admin#directory#member", …
0
votes
1 answer

Google Directory API etags differ when the data is exactly the same

Background: I want to utilize Etags (that I thought was a hash of the received data) for validation. Google Directory API let's me specify exactly what fields is required and sends along the etag, out-of-the-box. Issue: These etags differ between…
Niklas Ternvall
  • 510
  • 1
  • 3
  • 19
0
votes
1 answer

Add ClientId to the "Authorized API Clients"

I have web app, which requires users to authenticate using google's oauth2. Assuming that the user is admin in his organization and that I have his access token at hand, how can I add ServiceAccount's ClientId to the Authorized API Clients list in…
AlexL
  • 35
  • 1
  • 5
0
votes
0 answers

batchPath for Members insert api

We would like to insert group members via batch job. URL for single request is following https://www.googleapis.com/admin/directory/v1/groups/groupKey/members Currently we are using following url for batch https://www.googleapis.com/batch But as per…
0
votes
1 answer

Google App Engine App - authenticate to Google Admin Directory API

I'm trying to access the Google Admin Directory API to create new Google Groups, from inside a Java app that runs on App Engine. I'm using the following dependencies: com.google.api-client
0
votes
0 answers

Google Cloud Admin SDK (Node.js) Error: Request had invalid authentication credentials

I have such a situation: There is an firebase application which uses Admin SDK with Firebase callable functions and Google API, and Google Drive API. There is a folder which contains 9 files uploaded by the application, using Google Drive API Google…
Alex Pilugin
  • 683
  • 2
  • 10
  • 38
0
votes
2 answers

Programmatically fetch user's last login date to G Suite

On a user's page on the G Suite admin console, an admin can see the last login of a user. For example, one user I can see has a "last login" date of two years ago. I'm trying to pull this date programatically. However, the Reports API that provides…
0
votes
0 answers

Why Cant List Users or Groups with .NET Google Admin SDK Client Library

I am trying to call the AdminService API to manage my domain's groups such adding new group members, create new groups etc. , but I'm stuck with the request to get all the users' of my domain. Here is the code: public static class MembersSample …
0
votes
1 answer

Mobiledevices: action missing

I am trying to perform a POST of the action, however, when I make the request I get code 400 speaking that the action value is missing. my code: function mobileAPIPOST() { var response = UrlFetchApp.fetch( …