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

Google Admin Directory group list for user e-mail returns wrong empty response

I'm using the G Suite Admin Directory API to retrieve a list of groups that an e-mail address (that is not necessarily a user of the G Suite domain) is a member of, using directory.groups.list: GET…
4
votes
1 answer

Is it possible to call APIs from service account without acting on behalf of a user in domain-wide delegation?

My Python script retrieves infos about users and groups from a G Suite (testing, for now, with the 14 days free account). I'm using domain-wide delegation and OAuth 2.0 for server to server applications because I don't want to display a pop window…
elmazzun
  • 1,066
  • 2
  • 18
  • 44
4
votes
2 answers

GSuite Service Account + OAuth2 for other domains

I have set up an integration using GSuite Domain wide delegation + service account which allows us to act as any user within our domain. Currently this method isn't a very "user friendly" option for our customers at rulerr.com and I'm seeking to run…
laurieodgers
  • 109
  • 11
4
votes
1 answer

How to simulate sandbox "pre-installed by policy" extension

I'm developing an extension and I'm trying to use the enterprise.deviceAttributes API, but "This API is only for extensions pre-installed by policy.". How can I simulate a pre-installed by policy extension in sandbox so I can develop it? Also, I…
4
votes
2 answers

Doubleclickbid manager api using service account

I am try to access dbm api , I am authenticating the url using service account please find the sample code below from oauth2client.service_account import ServiceAccountCredentials from apiclient.discovery import build from httplib2 import…
4
votes
1 answer

Unable to retrieve members of a google group, getting Invalid Input

I created a Google group from the Google Groups homepage and have added 5 users. I am trying to use the Google Admin SDK API to retrieve the list of members from my group but whenever I try the API (from the API explorer) I get a 400 : { "error":…
J.Doe
  • 41
  • 3
4
votes
1 answer

Google Drive API - Query every shared file (shared with me or I shared with someone else)

Through the Google Drive API is there any way to query every file that is shared? I mean files that either were shared with me or I shared with someone. I was trying something like this: not 'me' in owners or ('me' in owners and not 'me' in writers…
4
votes
1 answer

Using nextpagetoken to pull more than 500 results in Google Apps Script query

In a helpful response to this post I learned that I can pull a maximum of 500 user results from my domain directory at once. Now I am trying to get a script to continue to run and pull batches of 500 until it pulls all the users from the domain (or,…
4
votes
2 answers

How can I get a list of calendar resources via Google API

I try to use fetch list of Calendar Resources (https://support.google.com/a/answer/60766?hl=en) from my company's Google Apps, using Google API. I try to use it using OAuth 2.0 Playground page (https://developers.google.com/oauthplayground). What I…
Krzysztof Wolny
  • 10,576
  • 4
  • 34
  • 46
4
votes
2 answers

members.list() in Google Admin SDK Directory API (Java)

I have a piece of code(in Java) to list all members of a group on a personal Google Apps Domain. This uses the google Directory API. Here is the snippet: public static void listMembers(String groupKey,Directory service) throws IOException { …
4
votes
2 answers

Is there a sandbox for Google Directory API

I want to develop an application that will be able to dial in to corporate clients' Google Apps Domain to get user info and groups. Is there a sandbox available where I can do this? Otherwise it looks like I would have to provision a (say) 200 user…
PeteW
  • 681
  • 6
  • 9
4
votes
1 answer

Non-admin read-only access to Google Admin SDK

In a post on the Google Developers blog from September 23, 2014, it says: Read access to all domain users Historically, only admins have been able to access the data in the Admin SDK. Beginning today, any user (not just admins) will now be able…
Adam
  • 63
  • 1
  • 6
4
votes
1 answer

Using Advanced Google Services with Service Account

I am developing an application using Google Apps Script and using some Advanced Services such as Admin SDK (Directory API) and Reseller API. It seems like these API's are being called by my WebApp under context of user who is accessing my WebApp…
4
votes
1 answer

How to get a CustomerId (or other primary key) for a Google Apps account?

When a user logs on to our Marketplace V2 app, we need to know which Google Apps account the user belongs to. The id_token contains the 'hd' parameter (the domain name), but that's not enough, as a Google Apps account can have multiple domains.…
user3256616
  • 103
  • 1
  • 1
  • 5
4
votes
1 answer

Creating a group with Admin SDK Directory API in Google Apps Script doesn't work "On form submit"

I've read through all of the relevant pages in the Admin ADK Directory API documentation and several questions on stackoverflow, and I'm still stuck. I am the super admin of my Google Apps domain, and I want users in my domain to be able to create…