Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

1 vote
0 answers
2k views

intermittent 412 error when calling Google Directory API to patch a user's password

My application's main function is to change a Google G-Suite user's password using Google's Google.Apis.Admin.Directory.directory_v1 nuget package. The API call works 95% of the time (and resets a ...
Eric Havens's user avatar
0 votes
1 answer
4k views

G Suite: Erase local user Profile in Chromebook

i'm wondering if there is a way (through script or anything) to remotely remove the local profile of a user on a Chromebook managed through the Google-Admin-Console ? GAM has no option for that. and ...
korchix's user avatar
  • 1,650
0 votes
1 answer
1k views

Directory API - How to use pageToken in Users List

Using Google App Script with GSuite's Directory API. I want to list all users from the root OU. This code pulls all users from the directory and filters out those who are members of sub-OU. The code. ...
Matthieu's user avatar
0 votes
1 answer
147 views

Unable to access GSuite Groups - Error Code 400

I have GSuite Service Account and My app uses following scopes (these are working fine) : https://www.googleapis.com/auth/admin.directory.customer.readonly,https://www.googleapis.com/auth/admin....
ShahtajK's user avatar
  • 127
0 votes
1 answer
479 views

How to retrieve organizational unit for current login user from G Suite in chrome extension/app?

User was managed by G Suite, I login chrome book with the user, in a chrome extension/app, I can get the email/ID of current login user, how can I retrieve organizational unit info for current user? ...
Lele's user avatar
  • 3
3 votes
1 answer
1k views

Google API giving unauthorized token error

We have an application hosted in GCP which uses GSuite APIs to sync users from GSuite to our application and visa-versa using Service Account. It used to work well until recently some of our customers ...
user1909970's user avatar
1 vote
1 answer
906 views

Retrieve the organization name from Admin Directory API

I'm using https://flask-oauthlib.readthedocs.io/en/latest/ to deal with Google OAuth API. I'm able to connect and retrieve user data. But still facing issue to get user organization name. According ...
Ali SAID OMAR's user avatar
0 votes
0 answers
242 views

How to avoid the popup for choosing email when use try to use oauth2 in python?

I am trying to build an flask app on AWS lambda, which needs to access https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly to get the Mac Address of chrome devices by domain name ...
Lehtia's user avatar
  • 159
0 votes
1 answer
1k views

Get All Users password of Google Apps Account Using PHP Client Library

I know guys get account details.But if i try account details received except password. My code is: $optParams = array( //'customer' => 'www2', 'customer' => 'my_customer', 'maxResults' ...
Raguvaran R's user avatar
0 votes
1 answer
886 views

Can't create aliases when using google directory API

The code I have is shown below. My problem is that when I am trying to update the 'aliases'-field it will not happen. What is wrong with my implementation? store = file.Storage('token.json') creds = ...
Palfos23's user avatar
1 vote
1 answer
2k views

Create user using Admin Directory API app script

I am trying to create a user from Google Forms and via App Script, the account will be provisioned in GSuite. When running the script, the account gets created but the employee and organization ...
Robert Paul Baquing's user avatar
1 vote
0 answers
723 views

Using Google Admin SDK, is there a way to suspend a user account (or to lock it in another way) that will still allow for the receipt of email?

Please note that I have already looked at Google's documentation of user account suspension. As it is described, it does not quite meet a core use case that I need to address. I need to figure out a ...
JeliRoll90's user avatar
0 votes
1 answer
136 views

Not able to upload certain parameters like emails and phones while inserting users with gsuite admin sdk > directory api (python)

While creating gsuite user using directory api (python lib: google-api-python-client), values of certain parameters,viz., "emails", "externalIDs", "phones", "organisations", "gender", and all others ...
aashu's user avatar
  • 105
1 vote
0 answers
110 views

Is Gsuite API domain-wide delegation service accounts can enable all organization's users gmail push notifications

i have created a service account and gave it a full access thrugh the admin console (performed the Domain-Wide-Delegation) i successfully retrieving users of the organization and i'm trying to use ...
LazyCreep's user avatar
  • 211
2 votes
1 answer
403 views

Directory API returns 403 forbidden

i'm trying to use the directory API by using a service account that I've enabled his Domain-wide Delegation and off course also authorized this service from the admin console using the json file ...
Hen Bar Levi's user avatar

15 30 50 per page