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

Display Google Admin SDK JSON Response in PHP

Thanks to Emily, I found the php client library already. I need to retrieve a users data. There is a function in the API that can do so : Google_DirectoryService.php /** * retrieve user (users.get) * * @param string $userKey Email or immutable Id…
CK Tan
  • 596
  • 2
  • 10
  • 25
0
votes
1 answer

Get delegated inbox id

In one of my applications, I'm trying to generate a link to a specific gmail message. I have the thread Id, so I can generate a link to a message in an inbox fine, like so: string message_url = "https://mail.google.com/mail/#inbox/" +…
Mansfield
  • 14,445
  • 18
  • 76
  • 112
0
votes
2 answers

How to access admin.directory.group via OAuth2 in a cron job?

I am trying (and failing) to use OAuth2 to make calls to the admin.directory.group scope via a command line script. I tried configuring a Service Account to do this, but get this error message: Error calling GET…
molecularbear
  • 131
  • 1
  • 7
0
votes
2 answers

Google Apps users created via Admin SDK Directory API cannot sign in to Google using SAML SSO

I have SAML single sign-on configured in my Google Apps account, allowing users of my web application to redirect seamlessly to Google Apps with no additional sign-in required. This works as expected when the mapped Google Apps user was created by…
0
votes
1 answer

Reports API - Admin Activity – Docs Event Names

In the ADMIN SDK Reports API we can retrieve specific events of admin using statement like: service.activities().list(applicationName="admin",userKey=userEmail,eventName="TRANSFER_DOCUMENT_OWNERSHIP").execute() But Is there facility to generate…
Poonam Gokani
  • 375
  • 1
  • 4
  • 13
0
votes
2 answers

Requested scopes not allowed

I'm trying to fetch a user from Google Directory API with the following request: Collection SCOPES = Arrays.asList("https://www.googleapis.com/auth/admin.directory.user.readonly", "https://www.googleapis.com/auth/admin.directory.user"); URL…
0
votes
3 answers

Admin SDK, Directory API, Users: list - Any PHP examples on how to do this?

Google Apps for Business linked to Apps Engine account Cloud Console -> Registered Apps -> {name} -> Web Application -> OAuth 2.0 ClientID Cloud Console -> Admin API (On) Google Apps Console -> Security -> API Access (checked) " -> " -> 3rd party…
0
votes
1 answer

Google Directory API: Updaing address information

Using the Directory API I am able to update the individual address attributes e.g. streetAddress, region and postalCode. However the 'formatted' attribute still has the old address and it is this that shows in the users Directory profile. The…
Jon
  • 3
  • 2
0
votes
1 answer

Reports API - ADMIN SDK

I want to use Reports API - ADMIN SDK User Usage Google Docs Parameter named "num_docs_shared_outside_domain" which is used to retrieve Number of Docs that are not public or visible to anyone with link, but explicitly are shared either with users or…
Poonam Gokani
  • 375
  • 1
  • 4
  • 13
0
votes
1 answer

User Rate Limit Exceeded Exception in Admin SDK

I am working with Admin SDK .when I update single user it's working fine but when I am trying to update bunch(1000) of users I got User Rate Limit Exceeded Exception. Please check below my code and tell me what am i missing ? or tell any…
RBP
  • 481
  • 1
  • 9
  • 29
0
votes
1 answer

Google Admin SDK operations using Client Login failing with 403 code even with Auth Token

I have downloaded admin-cmd-line-sample for Java and its working fine with oAuth, I am able to create users and groups. I have Admin SDK enabled also API usage in Security settings. But I have to use old ClientLogin mechanism to create users and…
baba.kabira
  • 3,111
  • 2
  • 26
  • 37
0
votes
1 answer

Python API client doesn't recognize 'login' type for Reports API

I've been trying to use Python and a service account to access the new Reports API to download user login information. I can successfully build a service account, and then I try to call activities.list using ApplicationName='login' (see snippet…
Jordan
  • 261
  • 3
  • 9
0
votes
1 answer

Get notified when new account is created

We are looking to develop a users directory and it should create new record whenever a new Google Apps account is created. Is there any way to listen for these changes? I was thinking to go for polling via…
Mitul Makadia
  • 398
  • 6
  • 24
0
votes
1 answer

Getting "permissionPreset" and "emailPermission" using google admin-sdk api

How do I get "permissionPreset" and "emailPermission" using google admin-sdk api? Here also I didn't get. https://developers.google.com/admin-sdk/directory/v1/reference/groups/list Can anyone please shed some light on this? TIA Riyaz.A
Riyaz Ashraf
  • 163
  • 1
  • 10
0
votes
1 answer

Google email migration for general users

can i create an a app that uses Google migration api .. to migrate my emails from outlook and yahoo to my gmail account .. is the api available to be used for a regular gamil account. The prerequisites in the documentation is very…
Sanath Shetty
  • 484
  • 1
  • 7
  • 24