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
1 answer

Google API users.get error 401 Unauthorized

So, im tryng to use users.get from google api and it work fine if i call it directly Oauth 2.0 Client Application but with it after get the token and make the request its necessary to allow on brownse to use it propertly and i can't let this…
0
votes
1 answer

How to transfers files with Google Workspace Admin SDK (python)

I am trying to write a program that transfers users drive and docs files from one user to another. It looks like I can do it using this documentation Documentation. I created the data transfer object, which looks like this: datatransfer = { …
0
votes
0 answers

Automation turn on setting Chat Externally on Google Workspace for some Organizational Units

My organization just switched to Google Workspace. Currently I need to reconfigure the settings for some Organizational Units. In which I need to turn on Chat externally in "Apps > Google Workspace > Settings for Google Chat and classic Hangouts >…
0
votes
0 answers

Get Data from Google console Admin panel

In the Google console admin panel we have a option to see all the mail logs. Is there any way or any google api which will help me to get the data of mail logs in with python code? I have seen and work that logic for gmail account which is working…
0
votes
1 answer

Error 400: invalid_scope ["https://www.googleapis.com/auth/apps.reporting.audit"] unable to set up email monitor with googleAPI python client

I began following the code sample given on googleapis github page to help me understand how the Email audit API works. The sample initialized the API service like this: from googleapiclient import sample_tools service, flags = sample_tools.init( …
0
votes
1 answer

Google workspace admin SDK, documentation and samples for Data Transfer API (Python)?

I want to transfer one user's files to another user's drive using admin SDK. I read the documentation for data transfer API. To access this API with proper scopes, I need to use the python client for google. I took a look at the available samples…
0
votes
1 answer

Is there a way to find the service associated with a serviceId on google admin?

By running Privileges.list on google admin sdk we get a JSON looking like this: { "kind": "admin#directory#privilege", "etag": "\"JCPRxFaiNR1s5TJ6ecIH8OpGdY4efiOYXbIB65itOzY/l3mP5LVwu5mUzpHpCwuZ6dUl8sQ\"", "serviceId":…
0
votes
2 answers

Cannot transfer google calendar events using Google API Python SDK

I have created function that is supposed to move all events from one Google calendar to another. Here is how it looks like: def merge_calendar(email_from, email_to, service): off_board_user_calendar =…
0
votes
0 answers

GAM (Google Admin): How to search query with empty custom field?

Hi I am working with GAM (Google-Admin-Manager) to manage our Google Workspace directory and have a custom field with bool value. I need to print all users having this field empty (without a value). null/NULL does not work... gam print users query…
MSt
  • 1
0
votes
1 answer

Google Python SDK : google.auth.exceptions.RefreshError: ('No access token in response.',

I am trying to make basic calls for gsuite, ala listing groups. I have poked around quite a bit and have seen several posts suggesting this is a scope issue. However, I have included as many scope paths as I can find that even looked remotely…
0
votes
1 answer

Sync user in google admin console without password

Is there any way to create user in google admin console without password? Users can create a new password with First Time Login I am using google admin sdk API with service account Bearer token to create user. Url:…
Amit Swain
  • 301
  • 1
  • 6
  • 11
0
votes
1 answer

Inserting ACL after creating Google Room Resource frequently throws error

I have a Google Cloud function which first creates a Google Room Resource using resources.calendars.insert method from the Google admin sdk, and right after I try to insert an ACL using Acl: insert method from the google calendar api. Similar to…
0
votes
1 answer

my app is not able to receive refresh token from Google anymore

i have a very weird problem. I'm using the Google authentication API since moree than one month now and all working perfect. But now out of the sudden, my users can't get refresh token anymore. My app is on testing state, so i thought the refreesh…
shakatechi
  • 51
  • 3
0
votes
0 answers

Does the Google workspace admin API provide a "Test Account" or "Sandbox test environment"?

Google Admin API doesn't seem to offer sandbox test capabilities. This is the conclusion of a tour of the community, the official document. I think it was in Gsuite a few years ago. Does Google Workspace Admin provide an API for testing? Sorry if…
kang
  • 1
  • 1
0
votes
0 answers

"Forbidden" error when trying to add a delegate

I am using this method Create delegate to try and add a delegate to a user's email account. I am getting a "Forbidden" error message when trying to give a regular user delegate access to another regular user's email account. user = "regular user…