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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
32 views

Google API for Admin console exists?

I need to check programmaticaly if in admin console setting ON or OFF. For example: 1. Log in to admin.google.com as an administrator. 2. Select Apps. 3. Select Google Workspace. 4. Select Gmail. 5. ...
RUSLAN SIMAKOV's user avatar
1 vote
0 answers
26 views

Unable to setup gmail in Google Workspace

I'm using Namecheap as the domain but having problems connecting it to Google Workspace. It keeps giving me the same error message. It says I need to delete some registrar forwarding. Maybe in the ...
Christopher Hall's user avatar
-2 votes
0 answers
12 views

Unable to receive emails via Google Workspace Account

I have setup a new Google Workspace account today for [email protected] and have followed the necessary steps. I am able to send emails but I amble unable to receive them. I get the ...
Benjamin Sagnier's user avatar
0 votes
0 answers
10 views

How to determine colloborative (shared) mailboxes in google workspace using api

I am looking for a way to determine if a group is a colloborative mailbox using api/sdk. The existing properties returned in groups list does not seem to have anything like this. Can someone please ...
Animesh Anand's user avatar
0 votes
1 answer
37 views

User Mailbox usage report from Google Workspace

I am trying to get a basic email usage report. We need to get user names and the size of their email boxes. The code provided below throws an exception "<HttpError 400 when requesting https://...
Yuri's user avatar
  • 2,850
0 votes
0 answers
14 views

Name disappears between directory view and details view

I'm having a problem creating a shared contact. When I create it, everything works fine and I can find my contact in the domain directory. But when I click on it to get the detailed information, its ...
Jonathan B's user avatar
0 votes
1 answer
41 views

Enable Apps script API for user via apps script

Despite of what documentation says as of today, I have managed to use Apps script API with a service account I'm trying to find a way to programmatically enable the Apps Script API for all my domain ...
Daniele Debiagi's user avatar
0 votes
0 answers
17 views

Google Workspace ChromeOS Devices link to Hornbill

I am trying to use the Asset Data Import Tool from Hornbill : https://wiki.hornbill.com/index.php?title=Asset_Data_Import_Tool They have the option to import from Google Workspace. I just need to ...
NPAT's user avatar
  • 1
0 votes
0 answers
25 views

Not getting Push notifications on channel created with ADMIN SDK Users.Watch

I am trying to setup a push webhook notification channel using Users.Watch() method from Admin SDK. Example code: var channel = NewChannel(); var req = service.Users.Watch(channel); req.Domain = ...
Animesh Anand's user avatar
0 votes
0 answers
60 views

Generating an OAuth 2.0 access token for a service account returning permission denied error

I wanted to use the rest API https://iamcredentials.googleapis.com/v1/{name=projects/*/serviceAccounts/*}:generateAccessToken to get the access token by the serviceaccount email but I am getting error ...
Samaritan's user avatar
0 votes
1 answer
73 views

Undelete a deleted google workspace user via google admin sdk/api using postman

Did anyone used undelete command to restore the deleted users using google admin SDK API in google workspace ? https://developers.google.com/admin-sdk/directory/reference/rest/v1/users/undelete I want ...
Sunny Sinha's user avatar
1 vote
0 answers
47 views

403 error while trying to list users from google workspace over Service account

func (s *Sync) GetGoogleAccounts() error { ctx := context.Background() creds, err := google.CredentialsFromJSON(ctx, []byte(s.GoogleApiToken), admin.AdminDirectoryUserScope, ...
Vajura's user avatar
  • 1,112
0 votes
0 answers
40 views

Moving externally owned files/folders in Google Workspace Shared Drives

While attempting to migrate folders that contain data owned by external users, we've ran into an error with moving a folder from My Drive to a Shared Drive. We understand the limitation of moving a ...
Mr. Collins's user avatar
0 votes
0 answers
27 views

How to setup the firebase admin SDK Service Worker credentials for custom token minting via third party JWT libraries for firebase function emulators?

I am working with the Firebase admin SDK on Firebase Cloud Functions. I am trying to set up the admin SDK so that I can mint my own tokens using third-party JWT libraries. The Firebase docs have ...
Ashar Rahman's user avatar
0 votes
0 answers
50 views

I am trying to get all users from google workspace using python but I am getting a HTTP error with code 400 after making the API call

I am trying to get all users from google workspace using python but I am getting this error message as a response " "exception": "googleapiclient.errors.HttpError: <HttpError ...
Verckys Orwa's user avatar
0 votes
0 answers
32 views

Looking for an API call to fetch all domain-wide delegations within my Google Admin Console

For security reasons we are looking to automate calls into Google Admin Console (Workspace) in order to fetch, once a day, all the domain-wide delegations within our Google Admin console, the call ...
Jariv Ashkenazy's user avatar
0 votes
0 answers
14 views

Google workspace reseller APIPOST https://www.googleapis.com/apps/reseller/v1/customers

{ "error": { "code": 401, "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid ...
Swetha Iaaxin Tech Labs India 's user avatar
0 votes
1 answer
91 views

Google Workspace API - List group members via REST api

I'm trying to use rest to list the members of a google workspace group via the rest api. Steps: Created a service account Delegated the scope https://www.googleapis.com/auth/admin.directory.group....
mlbiam's user avatar
  • 415
1 vote
1 answer
186 views

List Google Workspace users with a service account using NodeJS

I am trying to consume Google Directory API from a simple script using a Service Account. The script should be able to list the users from Google Workspace. I have configured a project with a service ...
grandouassou's user avatar
  • 2,510
1 vote
1 answer
74 views

Google python API for Admin Console Spam policies

I looked all over the internet and didn't find the relevant Python API for the settings in the following image in Google Admin Console: I'm trying to modify Spam rules and Email allowlist over API. ...
Yozez's user avatar
  • 133
0 votes
1 answer
122 views

Using Service Account for Admin SDK API calls without using Domain-wide Delegation

I've been trying to use a service account in order to obtain google workspace activities via the admin SDK but although the service account is granted an admin role with Reports privilidges I'm ...
Alon Shitrit's user avatar
0 votes
1 answer
204 views

Credentials to use google ADMIN SDK API

I've been tasked to write a short script that will add a user to a group in google workspace. However, I'm really new to the documentation and its not making any sense to me. I created a new account ...
Hadi Khan's user avatar
0 votes
0 answers
21 views

What is a turn-key approach to enabling a remote service to access a domain's Directory API (Admin SDK) and query a domain's user accounts?

I have a web service that wants to access a customer's Google Workspace's list of users to check their 2FA status. To achieve this, I will use the Directory API under the Admin SDK API. This check ...
Jarred Nicholls's user avatar
0 votes
0 answers
12 views

How to integrate GoogleAdmin SDK APIs and CloudResource APIs in Spring Boot

Trying to integrate Admin SDK Apis to manage users and assign GCP projects to same users. Does spring-cloud-gcp-dependencies starter project in spring boot have those ready-made librarries to execute ...
Amit Swain's user avatar
0 votes
1 answer
48 views

Unable to use Google API explorer

I am trying to use the google explorer API to test the queries I am making, I find that access to the explorer API is blocked, the side panel is not displayed. In addition, I have blocked access to ...
Coco5589's user avatar
1 vote
1 answer
155 views

How can I fix a 400 error when accessing Google API admin/directory in Go?

I get a 400 error when accessing the Google API admin/directory in Go I have a project where all users have a Google account which is centrally managed via G-Suit. Now I need to have all G-Suit users ...
acul21's user avatar
  • 13
0 votes
1 answer
59 views

Prevent changes in group subscriptions

how can I prevent that a member of a group can change his group subscription? https://support.google.com/groups/answer/9792489?hl=en I want him to receive all group emails. he must not be able to ...
Roberto B's user avatar
0 votes
1 answer
67 views

How can I delete admin role assignments from a user accounts using Google Admin API?

I need to delete role assignments from a list of user accounts. I am familiar with Google Apps Script, but need help working out the script needed to delete the role assignments using the Google ...
sjo's user avatar
  • 15
0 votes
0 answers
7 views

I am trying to obtain a list of users who have a value set in 'orgTitle'

I am trying to obtain a list of users who have a value set in 'orgTitle'. I am referencing the following documentation: https://developers.google.com/admin-sdk/directory/reference/rest/v1/users/list ...
user21924750's user avatar
0 votes
0 answers
92 views

Can't set changePasswordAtNextLogin to true - Google Admin Directory V1 API Rails

I am using the google-apis-admin_directory_v1 gem for Rails. According to the documentation, if you set the field changePasswordAtNextLogin to true in the insert user method it Indicates if the user ...
problems's user avatar
  • 105
0 votes
1 answer
33 views

able to access each user’s detail using Admin SDK api but unable to access each user's drive file it just reads files which is present in my drive

We have created service account on GCP console. We have enabled domain-wide delegation - which helps to authenticate as a domain user and list the Drive files We have added private key, client email ...
Sumitra Kumari Shaw's user avatar
0 votes
0 answers
28 views

Is there a way to exit/cancel or set the expiration date for commands that issued by customer.devices.chromeos.issueCommand from google api?

Is there a way to exit/cancel or set the expiration date(default expiration is 6 months) for commands that issued by customer.devices.chromeos.issueCommand method(https://developers.google.com/admin-...
Tee Bunsopha's user avatar
1 vote
1 answer
162 views

Unable to use firebase admin sdk in google cloud run application

I am trying to use the firebase admin sdk in my javascript web application hosted in google cloud run so that I can manage firebase users. It is working locally but not on google cloud. I was able to ...
Dan Rosen's user avatar
1 vote
0 answers
197 views

Get the list of third-party apps connected to google workspace through API

we're currently using the Reports API in the Admin SDK to get the list of applications that all users hava given access to. To use the API we're using oauth2 tokens and requesting the scopes https://...
Alfonso Brown González's user avatar
0 votes
1 answer
245 views

Google Admin SDK API - HttpError 412 "Domain user limit reached. Contact Support."

I want to perform a load test of a python script which creates users in the GoogleWorkspace. The purpose of the load test is to confirm that 100 users can be created successfully using "...
Anonymous's user avatar
  • 125
1 vote
1 answer
496 views

code": 403, "message": "Not Authorized to access this resource/api

GET https://admin.googleapis.com/admin/directory/v1/groups/{groupKey}/members I'm unable to make this HTTP call. here's my code is from google.oauth2.credentials import Credentials from google.auth....
develop's user avatar
  • 65
0 votes
1 answer
43 views

Google Admin SDK Push Notifications Stop API Can't find Channel with ID

Context: I've been working with channels through GAS, Starting and Stopping them on a regular basis for the past few months to prevent overlaps. Now I'm migrating my services over to n8n and I've ...
Sved's user avatar
  • 15
0 votes
0 answers
37 views

I'm trying to access Google Workspace Session control : Web session duration current state with an API call?

I'm trying to access Google Workspace Session control : Web session duration current state with an API call. there's no such API mentioned at developers.google.com or I was unable to find it. Please ...
Nobody's user avatar
  • 1
0 votes
0 answers
367 views

Google Admin Kiosk Mode JSON Configuration

I am looking to do a Google Chomebook kiosk for chromebooks and I am running into the issue of how the app runs. As the issue is we want people to sign in but after some time of inactivity to restart ...
RTarson's user avatar
  • 351
0 votes
1 answer
102 views

Best practise for Google Calendar storage for users

I'm working on a WebApp project which includes a system of Users. For each of these users I need a calendar of events that the user can interact with (CRUD operations). I wish to use the Google ...
Markus B's user avatar
2 votes
1 answer
187 views

Google Admin SDK API Error: creation is disallowed as we've detected some potentially abusive behavior

I want to perform a load test of a python script which creates/deletes users in the GoogleWorkspace. However, I faced the following Error. googleapiclient.errors.HttpError: <HttpError 412 when ...
Anonymous's user avatar
  • 125
0 votes
1 answer
1k views

Is it possible to disable email for a group in Google Workspace Directory?

Other Directory products have concepts of groups, and have the idea that you can disable email for a given group. Does Google Directory have anything like that, where you can create a group that doesn'...
Sam V's user avatar
  • 9
10 votes
3 answers
8k 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 = '/...
Anonymous's user avatar
  • 125
0 votes
0 answers
77 views

"gam print aliases 2>$null" not Showing All Aliases

I need to list all aliases in my domain (groups and users aliases) using Google GAM and I'm using the command below: gam print aliases 2>$null However, it's not bringing me an alias (l.suporte@...
Paulo Costa's user avatar
0 votes
1 answer
359 views

How to detect the user on google calendar events push notification callback?

I am trying to sync a booking system with google calendar and google resource as two-way synchronization. To do that, I creates webhook channels on specific google resource calendars to be aware of ...
Benjamin Geoffrey's user avatar
0 votes
1 answer
73 views

Retrieve connected applications for an user on google admin

On the security part of an account details we can find the Connected applications section where all the third-party applications are listed. How can I retrieve this list via the API ou SDK ?
Ôrel's user avatar
  • 7,187
0 votes
0 answers
83 views

Google Workspace Alert Center get/update settings calls returning 404

Ref: https://developers.google.com/admin-sdk/alertcenter/reference/rest The getSettings & updateSettings API calls there are returning 404. Go code which was working till early January has started ...
Rajat Upadhyaya's user avatar
0 votes
0 answers
24 views

Update the authenticated user data via googleapis

I've tried to update the authenticated user profile via multiple ways but I couldn't do that I tried: poeple service (deprecated) plus service (deprecated) admin service (couldn't request if because ...
karam mustafa's user avatar
0 votes
1 answer
124 views

How to create Google Workspace/Cloud Administrator account?

I am trying to set up Domain-Wide Delegation on a service account to allow a web page to interact with the Google Drive API, but the page says I need to log in with an "Administator Account"....
Straxan's user avatar
  • 13
0 votes
1 answer
293 views

How do I implement Admin SDK in my flutter so that I should Manage the users from Admin Panel?

I'm new to flutter working on my Final Year Project. I want to implement Admin functionalities in my App. So far I had implemented the data flow and the authentication things but I am stuck at ...
Faiq Ahmad's user avatar

1
2 3 4 5
32