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
73
votes
10 answers

Google: Permission denied to generate login hint for target domain NOT on localhost

I am trying to create a Google sign-in and getting the error: Permission denied to generate login hint for target domain Before you mark this a duplicate, this is not the same as the question asked at Google sign in website Error : Permission…
jimboweb
  • 4,362
  • 3
  • 22
  • 45
24
votes
1 answer

How to receive an update notification when a user enables 2-step verification?

I have created a channel to send my app notifications when a user is updated like so: data = { 'id': channel_id, 'type': 'web_hook', 'address': domain_address, 'kind': 'api#channel', } channel = directory.users().watch(body=data,…
MaryKN
  • 250
  • 1
  • 6
15
votes
1 answer

Use Amazon SES and Google GSuite for the same domain

I have a domain that I manage using Amazon Route 53. It contains TXT/MX records of Amazon Simple Email Service, that I use to process incoming email to a certain email address via AWS Lambda. I also need to register the domain to Google Admin, i.e.…
15
votes
5 answers

How do I find the immutable id of my Google Apps account?

Many of the Directory API calls require a customer parameter referred to as the "Immutable id of the Google Apps account. (string)". e.g. GET https://www.googleapis.com/admin/directory/v1/customer/customer/domains I have no idea how to find/generate…
Gary Prendergast
  • 151
  • 1
  • 1
  • 4
15
votes
1 answer

Batching operations in Google Apps Admin Java API

I have written a Java app that synchronises Google Groups on our Google Apps for Education domain (similar in function to Google Apps School Directory Sync, but customised for some of our specific needs). The synchronisation works, but it is slow…
Philip
  • 3,689
  • 3
  • 24
  • 35
15
votes
1 answer

Google_Service_Directory - (403) Not Authorized to access this resource/api

I have a problem just using an example of actual version of PHP api, and using the "service-account.php" file of examples folder. the original is for show the "Books API", and with my personal credentials configuration it works well, but in my xcase…
Roberto
  • 191
  • 1
  • 1
  • 12
15
votes
1 answer

Determine Whether User is Group Member

Background Our corporate users have a Google Apps account. We would like to allow them (and only them) to log in to an extranet using the Google account. Ideally we would also like to manage permissions through the Google domain management UI. …
Eric J.
  • 147,927
  • 63
  • 340
  • 553
14
votes
5 answers

I can't see the files and folders created via api in my Google Drive using php

I am trying to create folder using google drive api. I am able to get file id at the end. but i am not able to my folder in google drive. it seems some permission issue? $scopes = array( 'https://www.googleapis.com/auth/drive', …
Ankita Kashyap
  • 517
  • 6
  • 20
14
votes
2 answers

Getting "Domain cannot use apis" when using Google Admin SDK Directory API

I'm trying to use the Admin SDK Directory API, specifically to retrieve user info as detailed by the Users: get endpoint. I have requested the following permissions when…
user215997
  • 1,267
  • 2
  • 12
  • 12
13
votes
4 answers

Admin SDK cannot set settings for Firestore

So, I've been getting this warning recently: The behavior for Date objects stored in Firestore is going to change AND YOUR APP MAY BREAK. To hide this warning and ensure your app does not break, you need to add the following code to your app…
12
votes
2 answers

Creating and setting custom attributes for Google Admin SDK

I've been reading this documentation on how to update custom attributes for users. From how this is written, it seems as though I would be able to do the following: email = "a@a.com" results =…
12
votes
3 answers

Did something change/break with Google Directory API over the weekend?

Starting this morning, I am unable to set orgUnitPath on a User object using raw HTTP protocol. PATCH /admin/directory/v1/users/testuser_1440432547467%40example.com {"orgUnitPath":"/testorgunit_2"} returns { "error": { "errors": [ { …
Shon Vella
  • 123
  • 1
  • 5
12
votes
2 answers

Use bash curl with oauth to return google apps user account data?

I am looking for a fairly simple method to use curl to return information about a batch of users accounts (like createddate or lastlogin) in google Apps. I am very inexperienced with curl and the Google Apps api's. Does anyone know of a good…
Evil Genius
  • 1,015
  • 2
  • 10
  • 16
11
votes
2 answers

How to get user information with Google API PHP SDK

I am trying to add a login option to my website for people with Google accounts. I have been able to implement this Facebook but having issues getting user account information with Google. I am using the Google PHP SDK located here:…
spsquared123
  • 123
  • 1
  • 1
  • 7
10
votes
2 answers

firebase.auth().currentUser is null

I'm trying to retrieve the UID of the current logged-in firebase user in my Angular 4 app. Though, if I'm logging 'firebase.auth().currentUser' to the console I get a 'null'. So 'firebase.auth().currentUser.uid' gives an 'Cannot read property 'uid'…
1
2 3
99 100