All Questions
Tagged with google-workspace service-accounts
99
questions
1
vote
1
answer
101
views
Google Meet Space creation using meet api and service account Error: 7 PERMISSION_DENIED: Permission denied on resource Space (or it might not exist)
Iam trying to create meeting spaces using service accounts, but i get "Error: 7 PERMISSION_DENIED: Permission denied on resource Space (or it might not exist)" although i followed the same ...
0
votes
1
answer
56
views
How to assign Google Workspace licences using Appscript and a Service Account (SA)?
Is there a way to assign a Google Workspace Business Standard Licence to a user of a domain, using Appscript and a service account, but without having to use the rights of the user executing the ...
1
vote
1
answer
110
views
How to restrict Service Account read-access of Gmail-API to specific accounts
I need a service account for e2e tests in order to simulate the signup-flow (sending email with initial password etc). however, as far as I am aware, gmail as a service is managed on the level of the ...
0
votes
1
answer
47
views
what is the private key?
I have difficulty understanding your explanation...(see link How to use the Gmail API, OAuth2 for Apps Script, and Domain-Wide Delegation to set email signatures for users in a G Suite domain)
...
0
votes
0
answers
32
views
How to setup Google App Service Account OAUTH setup with admin consent?
We're currently investigating how to send emails on behalf of our users when they authenticate through an OAUTH app.
We can already do this on a per user basis, but we are investigating how to do this ...
-1
votes
1
answer
301
views
Google workload identity federation to call directory API
I'm trying to set up Google Identity Federation with AWS to make admin.directory API calls from aws lambda function. It is written in Java.
I set up workload pool, created service account and ...
1
vote
1
answer
68
views
Can't send an email from service account, get 400 Precondition check failed error
Trying to send an email using a service account with role owner within my project. I keep getting a 400 error that says Precondition check failed.
const sendEmail = async () => {
const auth = new ...
0
votes
1
answer
88
views
Google Calendar API problems with attendes and conferenceData
I am trying to create a video call in google calendar but the ConferenceData data arrives empty because none has been created, also when I add participants I get the error: The service calendar has ...
0
votes
1
answer
40
views
Trying to delete file from Google Drive Folder
Please,
How can I delete my file on Google workspace from google cloud service account?
my architecture is :
Local machine : executing scripting.
service account from Google cloud; xxxxxx@myproject-...
0
votes
1
answer
224
views
Accessing the Google Ads API using a service account without Google Workspace Domain?
I´d like to use the Google Ads API to programmatically retrieve ads data from my Google Ads account. I`d like to use a PHP script (Laravel command and the Google Ads API PHP client library) triggered ...
0
votes
1
answer
213
views
Domain-wide delegation alternative Google Workspace service account
EDIT: We cannot enable domain wide delegation.
I understand a form of this question has been asked and answered at least twice now:
No longer able to see option to enable domain-wide delegation of ...
1
vote
1
answer
497
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 ...
1
vote
1
answer
121
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"
<...
1
vote
0
answers
135
views
403 error while calling google workspace user API with service account credentials in golang
I am getting a 403 error while trying to call google workspace list user API using service account credentials in Golang. I want to access list of all users in my google workspace programmatically in ...
1
vote
1
answer
261
views
PHP getting Google Calendar events list "service account" (server-to-server) not working
This code (using Google PHP API Client https://github.com/googleapis/google-api-php-client) answers "No upcoming events found.", apparently not retrieving the events since there is at least ...
1
vote
1
answer
50
views
Unable to autenticate in OAUTH2.0
I am trying to test a JSON credentials in google OAUTH 2.0
But it gives me error 401, the service account has access to the google sdk admin, the project id was added to domain delegation.
Any ideas.
...
0
votes
1
answer
37
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 ...
1
vote
1
answer
231
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 ...
1
vote
1
answer
1k
views
getting Service accounts cannot invite attendees without Domain-Wide Delegation of Authority eventhough already granted Domain-Wide Delegation
I'm using a service account to create calendar entries and adding new attendees
for creating new appointments there is no problem
https://www.googleapis.com/calendar/v3/calendars/%7Bin_creator%7D/...
1
vote
1
answer
205
views
Grant Third Party Application Access to Google Drive API and Admin SDK API of another Organization's Google Workspace
We are working on a Migration App for Google Drive (Google Workspace) and are relatively new to Google APIs. I read that administrator need to grant domain-wide delegation of authority to third-party ...
0
votes
1
answer
472
views
Google Calendar API: how to add freebusy permission to user's calendar?
In my web app I need to add freebusy read permission for my service account to the primary calendar of gmail addresses provided by users.
How do I do that?
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 = ['...
0
votes
0
answers
136
views
Google Drive API - Problem with Service Account Storage
I try hard to find the answer from other topics but nothing.
My project let user to create request transaction and system generate PDF file and auto upload that file to Drive by Service Account.
I use ...
1
vote
1
answer
171
views
Is there a module/method in Python to help identify if a Google Account is a regular account or a Google Workspace-linked account?
A little more detail on the question -
Scenario
The app I'm working on currently performs the following -
Logs in users via Google OAuth ( added to Auth0 login )
Comprises of a list of Google Sheets ...
1
vote
1
answer
1k
views
Client is unauthorized to retrieve access tokens using this method or client not authorized for any scope requested API Directory C#
I am getting the following error when trying to access the directory api by getting a list of users
Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"unauthorized_client", ...
1
vote
2
answers
435
views
Google Workspace Service Account Credential setup for automated sending of emails and calendar automation with the .NET API Library
I have a Google Workspace with a few users in the directory, including a couple of Super Admins and regular users. I have set up a service account, created an API Client with Domain-wide Delegation.
...
2
votes
1
answer
607
views
Google Workspace marketplace service account for public listing
I have a server-side application that needs to access every user's gmail data in a google workspace organization. I want to publish a public listing on the google workspace marketplace that is ...
4
votes
2
answers
2k
views
How to programmatically request domain-wide delegation for Google Calendar API?
I've spent a few hours now looking through the docs + reading other SO posts, and it's still not clear to me how to simply request domain-wide credentials for Google Calendar API (for other domains; ...
1
vote
1
answer
791
views
how to read users gmail using google admin sdk and gmail api
I am new to google admin SDK and workspace.
First, I would like to apologize for my broken English and grammar.
I'm trying to read emails of my all workspace users using admin SDK and Gmail API with ...
0
votes
1
answer
313
views
Gmail API stopped working suddenly. Error message says unauthorized_client
We have been using Gmail API since the last 4 years without issue to read emails, but it suddenly stopped working and throwing exceptions: Error: "unauthorized_client", Description: "...