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

Manage a Gmail Setting through google admin sdk

I searched on the Web to find an evidence for changing Gmail settings through google admin sdk but I could not find anything! I want to add labels to a gmail account(x@gmail.com) through google admin sdk. I just need to know is it possible or not?…
Majid Darabi
  • 731
  • 6
  • 15
0
votes
1 answer

google admin sdk drive audit report api gives empty result

Referring below doc , have added audit scope to the client access. https://developers.google.com/admin-sdk/reports/v1/guides/manage-audit-drive New Scope : admin.reports.audit.readonly Over google oauthplayground , we r getting empty result so…
YogeshORai
  • 63
  • 3
  • 11
0
votes
1 answer

Clearing phone numbers from a directory entry with the Google Admin-SDK

I have successfully added and edited numbers to Google Apps directory entries (users) with the Admin SDK. However, I have not found a way to clear out phone entries. I have tried all of these for the body to no avail. {"phones": null} {"phones":…
Dan Wanek
  • 102
  • 5
0
votes
1 answer

With Google Apps Admin SDK Directory API, how can I get authenticated user id?

I have an authenticated user and am able to query for a list of domain users using the google apis php client library. However, it is unclear to me how I can retrieve the currently logged in user's user id. I tried using the my_customer alias…
0
votes
1 answer

How to grant a regular user limited adminsdk access for a google app script?

Is it possible to have a regular user access the AdminDirectory.Members.List() function using google app script without making them an administrator?
user2093601
  • 382
  • 3
  • 7
  • 19
0
votes
2 answers

Programmatically Add Domain Alias google apps api PHP

I have a reseller account with Google Apps For Business. I am using the google-api-php-client SDK for PHP from the GitHub repository: https://github.com/google/google-api-php-client I have already created the customer account as a reseller. I have…
0
votes
1 answer

Getting a list of members from google apps domain group

I have a none google apps admin account (regular user) that I want to run a google app script that pulls the member list of a google group. The way I'm currently going about it is to use the AdminSDK but don't know how to authorize this regular user…
user2093601
  • 382
  • 3
  • 7
  • 19
0
votes
1 answer

Gmail API Organization/Company Level Acess

I've just worked through the Gmail API guide on how to sync client applications with a mail account. https://developers.google.com/gmail/api/guides/sync What I'd like to know is, is it possible to access messages etc. at a company level, rather than…
0
votes
1 answer

How to get Particular versions of GoogleApps Admin Directory jars

When we are developing a client for googleapps using the admin sdk we started using the google-api-services-admin-directory_v1-rev35-1.18.0-rc.jar and its dependency jars like…
0
votes
1 answer

Directory.members().insert is not working using the Java client library

I'm using the Java client library for the Directory API from here: https://developers.google.com/api-client-library/java/apis/admin/directory_v1 I have insert user and insert group working fine, but for some reason when I try to insert a member, it…
jekennedy
  • 1,192
  • 10
  • 17
0
votes
2 answers

Get value from Javascript JSON object by referencing specific property name

I'm using Google Apps Script (Javascript) to retrieve the details of a user using the Users.get method in the Google Apps Admin SDK Directory API. The code to get the user is: var url =…
Employee
  • 2,231
  • 3
  • 33
  • 60
0
votes
0 answers

How to extract email subjects using the Google mail audit API without using FULL_MESSAGE?

When doing an email dump of a user's account using the Google Mail Audit API I have been able to extract the subject data only if I use FULL_MESSAGE when making the request. However, this does downloads much more than what I need (attachments, mail…
0
votes
1 answer

How do I use a Service Account with Google Admin SDK when an admin account address isn't known?

I am creating a service in the Google Apps marketplace which needs the ability to pull down a list of all user accounts in a Google Apps domain. It appears that to use a Service Account with the Admin SDK, you must specify a "sub" (a user who you…
0
votes
1 answer

java.lang.NoSuchMethodError: com.google.api.services.admin.reports.Reports$Activities.watch

I am working on Admin SDK. In that i want to use Report API for some domain level audit. I can manage list all reports like login etc.. For listing i am using Reports.Activities.List repoRequest = reportService.activities().list("all", "login") …
0
votes
1 answer

Directory API Tokens API issue

I am very new to ADMIN SDK. In that there is Directory API in which i am interested in Tokens api which give me 3rd Party API access for domain user. I am referring following link Directory API - Tokens after following there instruction i just tried…