service-accounts

Modify the signature for all users in my domain

微笑、不失礼 提交于 2020-01-24 23:14:14
问题 Currently my code only modifies my signature, because when I put the email of the other person in my domain, the error: Not Found (line 9, file "Code") appears. My current code: function myFunction() { var newSignature = Gmail.newSendAs(); newSignature.signature = "signature"; var listEmails = [ "leticia@domain.com"] var updateSignature = Gmail.Users.Settings.SendAs.update(newSignature, "me", listEmails) } I am developing using APPS SCRIPT. Any suggestions for me to be able to change the

Modify the signature for all users in my domain

ε祈祈猫儿з 提交于 2020-01-24 23:11:28
问题 Currently my code only modifies my signature, because when I put the email of the other person in my domain, the error: Not Found (line 9, file "Code") appears. My current code: function myFunction() { var newSignature = Gmail.newSendAs(); newSignature.signature = "signature"; var listEmails = [ "leticia@domain.com"] var updateSignature = Gmail.Users.Settings.SendAs.update(newSignature, "me", listEmails) } I am developing using APPS SCRIPT. Any suggestions for me to be able to change the

Google Service account user interfece

为君一笑 提交于 2020-01-23 04:56:08
问题 How can I login to a Google Service account with the normal web user interface, for example to google drive ? Now I can only login using API using script. 回答1: You cant. A service account is a sudo user type thing. Yes it has a Google drive account, Google calendar ... but you cant log in to the web interface for Service accounts. Option / work around / Tip: There is a slight workaround. You could have the service account give your Google account access to a directory on its Google drive.

Node.js - Can't access my account from the Google Drive API

廉价感情. 提交于 2020-01-16 19:33:52
问题 I need to programmatically modify my Google Drive, in terms of the ability to create folders and uploading to them a bunch of files, and then, when needed - remove that root folder and redo the whole process. I've created a project that has a service account, then downloaded the JSON and it's stored on my computer. Next, I followed this tutorial. I ended up with this code: const auth = await google.auth.getClient({ credentials: require(pathToServiceAccountJSON), scopes: "https://www

Node.js - Can't access my account from the Google Drive API

天涯浪子 提交于 2020-01-16 19:33:11
问题 I need to programmatically modify my Google Drive, in terms of the ability to create folders and uploading to them a bunch of files, and then, when needed - remove that root folder and redo the whole process. I've created a project that has a service account, then downloaded the JSON and it's stored on my computer. Next, I followed this tutorial. I ended up with this code: const auth = await google.auth.getClient({ credentials: require(pathToServiceAccountJSON), scopes: "https://www

Retake ownership from service account

▼魔方 西西 提交于 2020-01-16 16:10:07
问题 I've assigned ownership of one of my google sheets to a service account from a gcloud project I am working on (not a smart thing to do, I know...). How can I re-assign ownership of this sheet to my main user account? 回答1: If you have permissions on the service account (e.g. you're owner of the GCP project), you can use the command line tools to authenticate as the service account and modify the permissions there. Step by step process (you might have already some of those steps done): Download

Using gcloud on Travis CI

南笙酒味 提交于 2020-01-14 05:15:07
问题 I have gcloud installed and working and a service account gets also activated. I run the following and get a success(?): $ gcloud auth activate-service-account "${GAE_CLIENT_ACCOUNT}" --key-file "${GAE_CLIENT_KEY_JSON_FILE}" Activated service account credentials for: [xxxxx@developer.gserviceaccount.com] Then I run this: $ gcloud preview app deploy app.yaml --project "${GAE_PROJECT_ID}" --quiet --version "${GAE_PROJECT_VERSION}" You are about to deploy the following modules: - ricochet-robots

Google Service Account Authentication with Json file

与世无争的帅哥 提交于 2020-01-10 19:15:14
问题 I have been following the Oauth2 Service account documentation on Googles website. I have also been picking apart Googles .net client libray trying to get this to work. I have reached the Computing the signature stage. The privacy key from Google looks like this -----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDcmuyQC8rwWdPQ\nmIdksgzSJbVWTU5MeUxy+HAap3yut9wR/L6KGMJ4FBYcsPmXN5gQAhErybavGoZG\nfS1X1/PCpPVpTCA4749K8gbvuZg1JEIAqMtmHiBBrJj5l8eiekQc8pd7Pq35H4wi

When does the files get deleted from Google Drive Service account?

一个人想着一个人 提交于 2020-01-07 03:14:07
问题 I wanted to know how long does a file in google drive service account stay? I couldn't find its default expiration time. As I don't have control over the account, how can I know the file is deleted or if no way, Do I have to delete the files from service account myself? 回答1: since you don't have control over the account, I don't see how you can actually delete the files owned by that account. the file will stay there as long as the owner not deleting it. https://support.google.com/drive

Google Email Settings api using OAuth 2.0 service account in java

半城伤御伤魂 提交于 2020-01-06 14:55:17
问题 I want to use Google Email Settings api using OAuth2.0 service account authentication method in Java, however I am unable to find any useful client classes from Google or sample examples about how to do this. I have had a look at Directory apis which are very useful for user or group related operations. Is there any equivalent for Email Settings api? 回答1: You can still use the old library AppsForYourDomainClient.jar with Service Accounts. You need to override the method were the user/password