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

Service Account Authentication for Google Cloud Storage works on some servers but not on other servers

Im using google-api-java-client to access the Google Cloud Storage API. It works fine from my local machine and from some servers. But it fails with a 400 Bad Request (error: invalid_grant) on production server. I had a similar problem with Google…
0
votes
1 answer

Using Google API service account get all domain users' calendar list

I have a service account created and delegate domain-wide authority. I'm trying to get a list of calendars which each user has access to. some user's email can make the call, some cannot and returns a invalid request error. Can anyone help with…
0
votes
1 answer

Google Drive API - How to work with the domain-wide service account

I was trying to use the service account of my app to access to all documents of all users in my domain following this instruction: https://developers.google.com/drive/delegation But it didn't work. Could you please help me out on this?? I tried to…
0
votes
1 answer

Allow Google Drive SDK on Android to connect to an app-owned account

I'm looking for the possibility of making an android app that connects to a Drive account to upload files. The restriction is that this account should be a service account and not the user's…
apSTRK
  • 477
  • 7
  • 21
0
votes
1 answer

Server to server requests without a service account

Short version: Can my application authenticate itself with OAuth 2.0 without using a service account? Long version: The issue I'm having with service accounts is that they can't be granted the same permissions as the original account that created…
0
votes
1 answer

Can I use google service accounts to authenticate INCOMING requests?

We currently have an App Engine application plus some Google Compute Engine backends. Unfortunately App Engine is not considered "in-network" so in order for App Engine to make requests to backend servers, the relevant ports must be made publicly…
0
votes
1 answer

php: Need explanation on creating a google calendar crawling cron job

In essence it seems like I don't understand the proper process of authenticating a cron service. What I am trying to do: I want to collect all events in a google calendar and store it in a mysql database. Sounds simple, but I've spent hours today…
0
votes
1 answer

Google Calendar API - Stop watching events

I am creating an app to interact with Google Calendars and want to watch resources, but I also want the ability to stop watching them. When I try to un-watch I get the error Error calling POST https://www.googleapis.com/calendar/v3/channels/stop:…
0
votes
1 answer

Google_Auth_Exception When trying to get OAuth 2.0 Service Account Authentication

This is my code: session_start(); error_reporting(E_ALL); ini_set('display_errors', 1); require_once 'Google/Client.php'; require_once 'Google/Service/AdExchangeSeller.php'; $scriptUri =…
0
votes
1 answer

How to grant domain wide privs to your service account during app installation

I have a Google Marketplace app that uses a service account for access user's drive account. It requires domain wide grants, As per the doc here: https://developers.google.com/+/domains/authentication/delegation """ If the service account is listed…
0
votes
0 answers

Google Calendar created using Service Account throwing error on iframe

Error Message: Events from one or more calendars could not be shown here because you do not have the permission to view them. Here is the Calendar list view. Google_CalendarList Object ( [etag] =>…
0
votes
1 answer

organizational units get list of enabled services

I'm looking for a way to retrieve a list of Google Apps enabled (disabled) services. The services I'm interested in are: Calendar, Contacts, Drive, Mail. When running a backup of these services I get errors when they are disabled. So my solution is…
0
votes
1 answer

Google oAuth with service account for Google Coordinate

I use the following code to obtain the access token of Google oAuth2. There is an issue that if I don't add a line to refresh the token with assertion it would return nothing. Moreover, this refresh token won't work, because when I use this token…
0
votes
1 answer

where are my upload to google drive's files for service account

I have the code below that uploads a file to my Google service account. It is working, but I want to know where is the file? Which account can I use to login to google drive and get the file and how much space can I use? Is there anything like…
Red
  • 13
  • 2
0
votes
0 answers

Unable to access pscp.exe with a windows service account

I have built a windows batch file code that fetches the list of files from an FTP server and then pulls the appropriate file from that list. The batch file uses a combination of pscp.exe and psftp.exe in order to achieve this. If I login as a member…