Skip to main content

All Questions

1 vote
1 answer
58 views

Deleting Personal Emails from Gmail Efficiently

My Gmail reached the 15 GB limit, so I archived old emails with Thunderbird and I want to delete all the emails that are older than two weeks. Using the GUI is cumbersome because it seems like I can ...
Paul Lewallen's user avatar
0 votes
1 answer
123 views

Gmail API: Forwarded Email Replies Not Appearing Under The Original Thread [duplicate]

I'm working with the Gmail API and encountering an issue with email threading. Here's the workflow: User 2 subscribes pub/sub notifications. User 1 sends an email to User 2 via Gmail's web client. ...
Cem's user avatar
  • 502
1 vote
1 answer
745 views

Python: List Calendars using Google Calendar API

I am trying to list my account's Google Calendars using the Calendar API, but it is returning No Calendars Found. Below is my code: models/cal_setup.py import pickle import os.path from google.oauth2 ...
Mervin Hemaraju's user avatar
0 votes
1 answer
3k views

How do I debug "unauthorized_client" error in a google api call

I'm trying to fetch some data using a service account. I can query any resource that the IAM roles attached to this service account allow but am not able to fetch data from Google Workspace like from ...
Devesh's user avatar
  • 897
1 vote
2 answers
2k views

Get emails of users of my Google workspace as Admin

I'm currently trying to get all emails of users of my google workspace (i have an admin account)! i started by doing these steps on the console. Create a project in Google Cloud Platform (GCP) ...
Ramzi Missaoui's user avatar
1 vote
1 answer
171 views

insufficientFilePermissions error when try to export GDrive workspace files

Encountered insufficientFilePermissions error when try to export GDrive workspace files. Error: googleapiclient.http:Encountered 403 Forbidden with reason "insufficientFilePermissions" <...
Deepak Saini's user avatar
1 vote
1 answer
251 views

Python, unable to send mail from google workspace mail address to individual gmail address

import base64 from google.oauth2 import service_account from googleapiclient.errors import HttpError from googleapiclient.discovery import build from googleapiclient import errors from email.mime.text ...
user avatar
19 votes
7 answers
18k 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
  • 215
2 votes
1 answer
364 views

Google's quickstart.py not connecting to Google Workspace API because of JSONDecodeError: Extra data

I am following the steps in https://developers.google.com/gmail/api/quickstart/python to create their example application that can print a Gmail user's labels. I get JSONDecodeError: Extra data ...
WarrenTheRabbit's user avatar
2 votes
1 answer
897 views

Google Workspace API, API call to create a user?

We're using code similar to this for creating the user. However, we get a 400 Error when we call the API. What is the correct way to call the API? from __future__ import print_function import os.path ...
Ankur Roy's user avatar
0 votes
1 answer
1k views

GCP: Allow Service Account to Impersonate a User Account with Google Analytics Scopes

I am trying to create a script that enables a Service Account [email protected] to impersonate a user account [email protected] with the following GA scopes: target_scopes = ['...
qroberts's user avatar
  • 119
2 votes
1 answer
5k views

"Requested entity was not found." When admin attempts to patch another users signature

I'm trying to set a user's signature via Python through the Gmail API. When doing it with my own admin user it works fine but when trying it with a different email address I'm getting this error: ...
TOB the BOB's user avatar
0 votes
0 answers
270 views

Which Google Workspace API to use to verify domain added in Workspace admin

I have created a domain alias in my google workspace account. https://developers.google.com/admin-sdk/directory/reference/rest/v1/domainAliases Now that domain is in unverified state and i need a ...
KOLi's user avatar
  • 1
0 votes
0 answers
124 views

Consult chat reports using admin sdk google workspace

I'm new to integrations with the API SDK GOOGLE, and I need to consume the Workspace activity reports regarding the use of google Chat, I configured the following code, but I believe it is wrong, I ...
Rodrigo Martins's user avatar
1 vote
1 answer
246 views

Use the Calendar API without human interaction

I am trying to get events from a Google Calendar without prompting consent page to the user. I have used a service account for this (json file with all the data) But when I ran the script I am getting ...
דודי שושני's user avatar

15 30 50 per page