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

Google Drive SDK System.Net.Http.Primitives Version 1.5.0.0 instead of 2.1.10.0

Just downloaded a fresh copy of google-drive-v2-rev82-csharp-1.4.0-beta.zip and added a reference to Google.Apis.Drive.v2.dll in my VS 2012 C# project. I also added references to all the dll's in the Lib folder of the zip file. When I run the…
3
votes
3 answers

What is the format for the Directory.users().list().setQuery method?

The documentation states: Query string for prefix matching searches. Should be of the form "key":"value" where key can be "email", "firstName" or "lastName". I've tried: directory.users().list().setQuery("email:" +…
piusvelte
  • 1,596
  • 2
  • 15
  • 18
3
votes
1 answer

Is there a stable User ID?

I wonder if there is a stable uuid ( unique user id ) when using the Google provisioning API. The use case would be, that a user is marrying and changing their last name and username, but we still want to find the same user.
Ray Hulha
  • 10,701
  • 5
  • 53
  • 53
2
votes
1 answer

Google Admin SDK API Error: creation is disallowed as we've detected some potentially abusive behavior

I want to perform a load test of a python script which creates/deletes users in the GoogleWorkspace. However, I faced the following Error. googleapiclient.errors.HttpError:
2
votes
1 answer

insufficient_scope when trying to use Google admin.directory.group API with ADC

I am trying to use ADC to use Google Admin directory/groups API but getting insufficient_scope error. My email address attached to ADC is a super admin in Google workspace. I am not sure whats going wrong, here is the code: const {google} =…
2
votes
1 answer

Why does it turn into an unavailable room when I create a google resource calendar with its API?

I'm going to create a google resource calendar room via its API (i.e. https://admin.googleapis.com/admin/directory/v1/customer/my_customer/resources/calendars). But the problem is, when I create one, it turns into an unavailable (crossed out) room…
2
votes
1 answer

Directory API Java users.list permissions

please, anyone could tell me which permissions I should grant a user or service account to be able to access "Admin SDK Directory API" and use users.list method? Thanks in advance. Stefano
2
votes
0 answers

How to get Google Workspace user subscriptions using Google API

I can obtain the information about each user for the given Google Workspace organization using the following endpoint: GET https://admin.googleapis.com/admin/directory/v1/users However, the licensing information is missed in the response. How can…
Vasyl
  • 404
  • 1
  • 6
  • 19
2
votes
1 answer

How to use service account to authenticate google workspace admin api?

I obtained a service account JSON file and also attached domain wide delegation permissions to that service account. Next I set the service account file path using the GOOGLE_APPLICATION_CREDENTIALS env variable. After that I tried to access google…
THpubs
  • 7,804
  • 16
  • 68
  • 143
2
votes
2 answers

Using both AdminDirectory API and AdminReports API in the same project/script?

So when you add either service, you exclude the other one (see picture). Once you have added either the reports_v1 or directory_v1 you can no longer select the Admin SDK API to select the other service. How do I go about using both in the same…
SL8t7
  • 617
  • 2
  • 9
  • 27
2
votes
2 answers

Update user info using googleapi using php will make the predefine field empty if not updated

I'm working to update the user info using googleapi in php. When I run this code it will make the predefine field which I don't want to update empty. As in this code I'm not setting Title as the title is already set but once I run this code the…
2
votes
0 answers

API to Get Password policies in Google Admin SDK

I'm trying to get password policies using Google Admin SDK, but unfortunately cannot find an endpoint for it. Pls help.
2
votes
1 answer

What is the corect version of google-api-client for use with Admin SDK API?

I am trying to execute this google's directory api to signout users from my application. which is a POST call POST https://admin.googleapis.com/admin/directory/v1/users/{userKey}/signOut where userkey needs to be userEmail. private String…
2
votes
1 answer

Does AdminDirectory.Users.list support query with showDeleted=true?

I'm trying to retrieve data for a deleted user (in order to undelete it) in this way: var users = AdminDirectory.Users.list({ domain: 'mydomain.com', showDeleted: 'true', query: 'email=name.surname@mydomain.com' }); query parameter…
2
votes
1 answer

SDK, Trying to call Members from Group Gmail and Update

I am trying to create a call that gets all the group Gmail emails so that I can update those that aren't there and delete those that shouldn't be. I am currently trying the below code and I'm getting a scope error. # If modifying these scopes,…
Andrew P
  • 21
  • 2