Questions tagged [service-accounts]

The Google OAuth 2.0 endpoint supports server-to-server interactions such as those between a web application and Google Cloud Storage.

A service account is used when you want to access your own data and not data owned by other users. In this instance there is no reason to use OAuth2 and prompt a user to give you access to there information, its your information you already have access.

For this scenario you need a service account, which is an account that belongs to your application instead of to an individual end user. For example, if you use the Google Prediction API to act on behalf of your application without accessing any user data, your application uses its service-account credentials to prove its own identity, and no end user is involved.

A service account's credentials include a generated email address that is unique, a client ID, and at least one public/private key pair. You obtain these credentials in the Google Developers Console, or if your application uses Google App Engine, a service account is set up automatically. You use the client ID and one private key to create a signed JWT and construct an access-token request in the appropriate format.

1492 questions
-1
votes
1 answer

How to send email using service account details only in ASP.NET Core console application?

I have gmail API service account details = client id and service account. How can I just send an email from one id to other without OAuth? I want to authorize this email sending process with the service account credentials only. Is there a nuget…
-1
votes
1 answer

How to edit event in google calendar created by service account

I am emailing an HTML link of a Google calendar event generated by Google API to users but they are unable to edit the event, they can only view it when they click the link. I am creating this event with a service account and sharing with other…
-1
votes
1 answer

HttpError 429 when rquesting gmail-api : User-rate limit exceeded

I'm using Gmail-api to retrieve emails from the reception box and I 'm faced to this error since some time : googleapiclient.errors.HttpError:
-1
votes
1 answer

Gmail API restrict access to only one Group

I'm trying to find a way to read inbox email of a Google private Group using GmailAPI. I thought about using a service account that will be a member of this group with only read access. Do you know how can I do that? Thanks, Dan
-1
votes
1 answer

How can i use google api in php to access a specific user's google drive and manage it

i'm in a company for weeks, with the idea to developp php intranet (as a website), using google api to manage some google sheet in google drive. step by step : -the user connect to the application with gmail adresse to access to the website. so i…
-1
votes
1 answer

Google API calls hangs on production web server

Calendar API->service accounts The calls works normally on local development machine (Visual studio) but hangs on production Web Server. The call: var private_key = @"mykey"; var client_email = @"myservicemail"; var…
-1
votes
2 answers

Error with Google Cloud Function - TabError

I'm working on a Google Cloud Function to create a Service Account key, following these instructions: https://cloud.google.com/iam/docs/creating-managing-service-account-keys. Every time I deploy the function, I get this error, but I don't…
-1
votes
1 answer

Windows 10 DNS client crashes and I'm unable to restart it

For some time I'm facing a very frustrating situation, all of a sudden every internet connection that uses domain instead of IP start failing. Active connections continue working, softwares that had cached the IP continue starting connections, IP…
Hikari
  • 3,797
  • 12
  • 47
  • 77
-1
votes
1 answer

Google drive don't know what user to impersonate

I am able to access users files by Impersonation. When I call the classroom get method (https://developers.google.com/classroom/reference/rest/v1/courses/get) the drive Id folder is retrieved, with this fileId I want to call the drive api and get…
Diego
  • 326
  • 5
  • 13
-1
votes
1 answer

How to upload file using service account and python

I currently have a python code and already created a service account. I now need a way in order to upload file into a google drive folder shared to the service account. Bonus points is finding first if a certain folder already exists, if not create…
-1
votes
1 answer

Is there any other way of initialization of client library/package without using Google service account file

I have a requirement for using multiple Google service account belongs to different owners in a multitenant architecture. Right now the problem is i have to keep the file path in an environment variable GOOGLE_APPLICATION_CREDENTIALS and client…
-1
votes
2 answers

How to use Google Service Account and Google API to validate G-Suite User's Password against its user ID

I am writing a node server where I am using the Google Project and Service account to manage Users in that G-Suite Account. Since the service account is domain-wide delegated with administrator roles enabled, Is it possible to validate the…
-1
votes
1 answer

BigQuery with service account - Java

Is there any Java sample for accessing BigQuery service using a app-engine service account ? I do not want to use OAuth flow.
-2
votes
1 answer

Authentication for multiple projects in GCP using service accounts

I have 2 GCP projects for which I am trying to perform authentication using C#. Because the projects are belonging to different clients, I am given access to service account json file. Is there a way to call the Compute engine API in both the…
-2
votes
1 answer

Can I get the step by step process for downloading images from Google drive using the service account via Node.js

I'm building a automation test script and I want to overcome the authentication process so that the script doesn't need manual intervention of Tokens getting added during the execution. I need the step by step process for downloading images from…
1 2 3
99
100