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
1 answer

Access the Google Drive Activity Report with Python

I am trying to retrieve the activity report from my google drive. I have created a project in the developper console and activated the following API: Admin SDK Audit API Drive SDK Drive API I am using the following script in Python: import…
0
votes
1 answer

How to access users mailbox using admin access token

I got access token for admin user. Now I have to use gmail api to retrieve users gmail metadata of my domain as usual like REST api. Ex: https://www.googleapis.com/gmail/v1/users/me/threads?access_token=user_access_token Now I have to get same user…
0
votes
2 answers

Google Email Settings api using OAuth 2.0 service account in java

I want to use Google Email Settings api using OAuth2.0 service account authentication method in Java, however I am unable to find any useful client classes from Google or sample examples about how to do this. I have had a look at Directory apis…
0
votes
0 answers

How do I get valid JSON back for a UserOrganization object

The JSON being returned as a representation of a UserOrganization object is invalid, and the Gson parser throws an exception when trying to convert it into a UserOrganization object. For example, I added a UserOrganization with a type of work and…
0
votes
1 answer

Are there any hooks for user modification events in google apps?

Currently the bane of my existence is dealing with users email signatures at work, changing names, titles, departments, new users...it's all annoying. Currently I manage it with GAM and a semi templated HTML file to push changes, which works okay,…
0
votes
0 answers

Google Admin Sdk is not retriving all users

I using google admin sdk to get all users from domain. Below is my code Directory.Users.List list = directoryService.users().list(); list.setCustomer("my_customer"); list.setPageToken(nextToken); list.setMaxResults(500); Users users =…
RBP
  • 481
  • 1
  • 9
  • 29
0
votes
1 answer

Use minSdkVersion 7

I need in my app this piece of code: //compile 'com.google.android.gms:play-services:6.+' But I also need the minSdkVersion to be 7, and tha doesn't work. The error: Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger…
pdsafs df apk
  • 741
  • 1
  • 6
  • 9
0
votes
2 answers

Limiting Admin SDK API access

My app provides different access levels to users based on what groups they belong to. Therefore, my app needs access to the Admin SDK's directory_v1/groups/list api. For example, I'd like to…
0
votes
1 answer

Unable to retrieve domain_public user information via directory api

I have several clients. All of them are able to retrieve their domain_public user information via directory api using their own credential. Then, one of the client always return a resource not found error even the account is valid. However, when I…
0
votes
1 answer

How to update a user's externalId using Java

I'm trying to update a user with an externalId based on the Google Admin SDK documentation. UserExternalId externalId = new UserExternalId(); externalId.setType( "account" ); externalId.setValue( "test" ); User user = new User(); …
0
votes
1 answer

Admin Sdk Next Page Token expiry time

I am using Admin SDK. I am retrieving 30 users per request. I am using nextPageToken to get next 30 users. Can anyone tell me how long is the nextPageToken?
RBP
  • 481
  • 1
  • 9
  • 29
0
votes
1 answer

Admin SDK Drive Activity Log doc_title partial matches?

I'm using the Google Admin SDK to query the Drive Activity Log using the following URL as the basis for the query: https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?maxResults=1000&filters=doc_title==Design It…
0
votes
1 answer

Google Admin Directory API SDK User Last Logged In Not Fully Accurate

I use the .Net API for managing my organization's users within Google Apps. Within the directory API you can "RetrieveUser". This returns a User object that has a date property of "LastLoginTime". Google used to separate out their Last Login Time…
DFTR
  • 861
  • 10
  • 30
0
votes
2 answers

Google Admin Api- User provisioning to Organisational Unit Give Error: 403

Hi All Geniuses buddies I am using google admin apis. user provisioning is what i successfully performed. When i try to move the same user to Organisational Unit(OU). It give me error like {"The remote server returned an error: (403)…
0
votes
2 answers

Need to handle 404 errors when using the Google Admin SDK and searching for users

I am having trouble catching error when using the Google Admin SDK and .NET. There was not much information on practical examples using this on Google's website, that I could find. Alas, I have working code that will search a Google Apps domain for…
Jeff
  • 1