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

Google API Oauth Installed application

I am using google oauth 2 for authentication. (Installed application) Right now when the user allows access in user consent screen, how can i retrieve auth code from the redirect uri without user involving in cut and copy paste auth code. How to…
0
votes
1 answer

Batch requests for Google Apps Email Settings

I'm trying to send batch requests[1] with Email Settings operations, specifically with Vacation-Responder and Forwarding Settings but I only get "404 not found". I've worked with other Admin SDK APIs' operations inside batch requests with no…
0
votes
1 answer

create an user in google apps using admin sdk api in java

How to create an user in google apps using admin sdk api in java. If i use Directory service = new Directory.Builder(httpTransport, JSON_FACTORY, credential).setApplicationName("DirectoryCommandLine").build(); User qq=new User(); …
Radcliff
  • 45
  • 1
  • 7
0
votes
1 answer

How to get to know whather app has unistalled from Marketplace apps from Admin Panel

End user can install my application from Marketplace Apps. But When they uninstall from marketplace app, I didn't get uninstall information and my application starts to get user details from that domain using admin sdk ,It returns '403:Requested…
RBP
  • 481
  • 1
  • 9
  • 29
0
votes
1 answer

Is there an API to retrieve Sites usage quota

I found AdminReports.CustomerUsageReports.get(date) function can return usage reports such as gmail, Drive and G+. Is there an API can also retrieve Sites usage?
0
votes
1 answer

google admin SDK for non admin-user

I created google app in developer console. Enable Admin SDK Enable API access In "Manage OAuth Client access" i added "Authorized API client" with "https://www.googleapis.com/auth/admin.directory.user" scope. Further, i want to get users from my…
kidar2
  • 124
  • 4
  • 14
0
votes
1 answer

Add Send-As email (request) with domain name outside of current account

Due to a merge, we have domain A under one Google Apps acccount, domain B under another one. I can create accounts for all the users in domain B to domain A to start a migration afterward. Adding aliasses with domains under account A is no problem.…
0
votes
1 answer

google directory api "Domain cannot use apis"

I'm trying use the Google Directory API. In my project I enabled the Admin SDK, Google+ Domains API. JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance(); HttpTransport httpTransport =…
kidar2
  • 124
  • 4
  • 14
0
votes
1 answer

Google Admin SDK Directory API - Service Unavailable Error while retrieving users

We have been using Admin SDK's Directory API to retrieve users from Google Apps Domain and sync it to our application. It has been working fine till now but since past 4-5days our client domain has been experiencing error while retrieving…
0
votes
1 answer

How to list all users (under all domains) in an organisation?

Organisations can have multiple domains under their Google Apps account, and each domain can have users under it. For example, the organisation domain is company.com, but it also has parkeddomain.com associated with it (admin console -> domains). I…
MeLight
  • 5,454
  • 4
  • 43
  • 67
0
votes
1 answer

Get Google Apps user's used quota

I've been trying to obtain a Google Apps user's used quota and I find that it is possible with Admin SDK Reports API. However, it seems that it can only give you information from two days ago and before. This is the error I obtain: Reason:…
salvarez
  • 87
  • 1
  • 8
0
votes
1 answer

How to get refresh token from authorization code and how to get an access token from that refresh token?

I'm writing a web application where I'm getting an authorization code with which I'm able to get an access token. But this token expires in an hour's time. So how do I get a refresh token from the authorization code and use the same refresh token to…
Arun
  • 21
  • 1
  • 6
0
votes
1 answer

Is there a Google Apps Admin API for configuring the URL Blacklist and URL Blacklist Exception?

I would like to configure the URL Blacklist and URL Blacklist Exception settings for an Organization in my Google Apps domain via an API. Is this possible? I don't see anything obvious at https://developers.google.com/admin-sdk/ but my…
balduncle
  • 517
  • 6
  • 15
0
votes
3 answers

Admin SDK directory api returning member type equal to "CUSTOMER"

I am trying to get all the members of a group using Directory API of Google Admin SDK.I have added all the users of my domain to this group using add all users in this domain button on admin panel of my domain. Apart from this I have also added one…
Munish Dhiman
  • 511
  • 1
  • 7
  • 22
0
votes
2 answers

'Precondition failed.' error while getting suspended Google users Drive by using Google Admin API?

I have below piece of code to read documents from domain users Drive. One of the user in selected Domain is suspended. I am getting 'Precondition failed.' error for this suspended users. For all other users same code works properly. Is it possible…
Jeevan
  • 167
  • 2
  • 11