1,574 questions
74
votes
10
answers
68k
views
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 ...
19
votes
7
answers
20k
views
【Google OAuth】AttributeError: 'InstalledAppFlow' object has no attribute 'run_console'
I wrote a Python script(Google_add.py) which creates users in the Google Workspace. However, When it is run, an AttributeError occurred. How do I resolve this Error?
・Google_add.py (Excerpt)
PATH = '/...
15
votes
5
answers
14k
views
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/...
15
votes
1
answer
6k
views
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 ...
14
votes
2
answers
10k
views
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 oauthing
https://www....
13
votes
4
answers
5k
views
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, ...
12
votes
3
answers
985
views
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"}
...
11
votes
2
answers
16k
views
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 ...
10
votes
2
answers
5k
views
Retrieving Google User Photo
I am able to retrieve the thumbnailPhotoUrl from the user.list api of the google admin SDK. However, whenever I try to render the image, Google is redirecting to a static silhouette image. The URL ...
9
votes
4
answers
11k
views
Can't list users with Google Directory API Admin SDK
I'm trying to use the AdminService to manage my domain's users and groups, but I'm stuck with a simple request to get all the users of my domain. There is the code in C#:
public Users GetAllUsers()
{
...
9
votes
1
answer
5k
views
How do I use JWT to access Google Directory (Admin SDK) using NodeJS client libraries?
I'm trying to make a server application that will add/remove users to my domain's groups. Note that it will not have any interaction with users, it is server-to-server application.
I registered my ...
9
votes
0
answers
750
views
How to automate Firebase FCM push notification sending Integration Tests
I have a process that runs in a Java Cloud Function and sends notifications to Firebase's FCM using the Firebase admin sdk.
I'm currently testing this with unit tests that mock FCM classes.
I'd like ...
8
votes
1
answer
3k
views
Change READ TIMEOUT for a batch HTTP Request on using Google API Client Library for Java
I am making batch requests for adding members to groups. For this I am using OAuth2.0 and obtaining the object of class type Credential.When executed, the batch.execute() throws a
java.net....
8
votes
1
answer
3k
views
Why does a service account with delegated domain access still need impersonation?
I am considering using OAuth 2.0 service accounts and domain-wide delegation of authority to integrate our service with Google Apps. A particular use case is:
When Google Apps customer signs up for ...
7
votes
3
answers
4k
views
Integrating with Google Admin SDK in C#
I'm currently trying to integrate with the Google Admin SDK via C# so we can manage users via our own system. However, when running the project I get the error: Unauthorized Client.
Things I have ...
7
votes
2
answers
4k
views
403 Request rate higher than configured
When I'm adding members to Google Groups I'm receiving a 403 Request rate higher than configured error. This is happening for all applications, including the API Explorer on the Google developer ...
7
votes
2
answers
3k
views
Google Admin Directory User Error
Using Google API .NET Client v1.3.0-beta.
I created a console application to test the basics of Google Admin Directory from the sample code for Service Accounts. This should give me a count of all ...
7
votes
3
answers
4k
views
Google API/get directory contacts
I need get list of contacts/phones from google buisness directory listing.
I have tried Google Contacts api, it work ok for all contacts under "My Contacts", but not allow show "Directory" contacts.
...
6
votes
4
answers
19k
views
Converting string to web-safe Base64 format
I am testing how to update user picture using the Admin SDK Directory Service with Google Apps Scripts with the following function:
function updatePhoto(){
var fileId = 'XXXXXXXXXXXXXXXXXXX';
var ...
6
votes
3
answers
6k
views
Turn off 2-Step Verification for a user via API as a Google Apps super admin
As part of our "off-boarding" process for employees leaving the company, as super admins we use the Google Apps Admin SDK Directory API to change the user's password so that they can no longer access ...
5
votes
3
answers
3k
views
Accessing users account with service account
We need to use an API to verify if a certain user exists as managed account (i.e, that belongs to our Google Domain organization).
Google Workspace admin SDK performs that operation, however, it ...
5
votes
2
answers
5k
views
Does a Service Account have to impersonate a user to access the Directory Api?
I think I might be misunderstanding how Service Accounts work in GCP, as I don't understand why (in my situation) they need to impersonate a user to complete a task.
I need to access some information ...
5
votes
3
answers
4k
views
This document does not exist, it will not appear in queries or snapshots? Cloud Firestore
I'm quite new to Cloud Firestore (aren't we all?) and I've added some data to my db using the admin SDK in Node.js. It shows up on the console, but under the doc it says "This document does not exist, ...
5
votes
2
answers
1k
views
Google app-engine updating user information getting error 400 BAD_REQUEST
While updating user information using Directory API of Admin SDK getting an error :
400 BAD_REQUEST
{
"code" : 400,
"errors" : [ {
"domain" : "global",
"message" : "Invalid Input: Bad ...
5
votes
1
answer
2k
views
NodeJS Example - Firebase Cloud Functions - Instantiate an Admin SDK Directory service object
Goal
Use googleapis with Firebase Cloud Functions to get a list of all users in my G Suite domain.
Question
How do I Instantiate an Admin SDK Directory service object. I do not see a NodeJS example,...