service-accounts

Service account Domain-wide delegation - Google Calendar API v3 on PHP

冷暖自知 提交于 2021-01-01 06:55:06
问题 I have a problem with the domain-wide delegation using Google API PHP Client (https://github.com/googleapis/google-api-php-client). I know this question has been asked before but I couldn’t find any solution, so I’m here asking again hoping that meanwhile someone solved this problem. Situation I created a service account and enabled G Suite domain-wide delegation, following the google guide (https://developers.google.com/admin-sdk/directory/v1/guides/delegation), but I cannot read the

google Drive api v3 file upload errors

女生的网名这么多〃 提交于 2020-12-13 03:45:54
问题 The google drive api on python is showing the following error. My file upload code is already mentioned on Google Drive api v3 file upload errors via python I am getting the following errors, File "/opt/cppython/lib/python3.8/site-packages/httplib2/__init__.py", line 1685, in _request raise RedirectMissingLocation( httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header. My pips are as follows, google-api-core 1.22.4 google-api-python-client 1.12.3 google

How do you enable “iam.serviceAccounts.actAs” permissions on a sevice account?

六月ゝ 毕业季﹏ 提交于 2020-12-01 10:58:09
问题 I am trying to deploy a service with a non-default service account by following this guide and it says I need "the iam.serviceAccounts.actAs permission on the service account being deployed". The service account I am using is @cloudbuild.gserviceaccount.com , but I don't see the option to add it on my project's Permissions page. 回答1: The key point is that the service account is a resource. You need to add an IAM role for your identity to the service account (the resource). This grants you

Cloud Build fails to deploy to Google App Engine - You do not have permission to act as @appspot.gserviceaccount.com

♀尐吖头ヾ 提交于 2020-12-01 07:59:25
问题 This morning I made a PR which triggered a Cloud Build for my staging enviroment but failed to deploy the results to GAE. The error was as follows: ERROR: (gcloud.app.deploy) PERMISSION_DENIED: You do not have permission to act as '[redacted]@appspot.gserviceaccount.com' Step #4: - '@type': type.googleapis.com/google.rpc.ResourceInfo Step #4: description: You do not have permission to act as this service account. Step #4: resourceName: [redacted]@appspot.gserviceaccount.com Step #4:

Creating Google Calendar events with a GCP Service Account

柔情痞子 提交于 2020-11-25 03:46:13
问题 I would like to rig things so that my GCP service account can invite users to calendar events. So for example my-service-account@myproject.iam.gserviceaccount.com would invite user@myCorporation.com to an event. It seems to me that this should be possible simply by giving my-service-account@myproject.iam.gserviceaccount.com permission to use the Calendar API, without having user@myCorporation.com grant any additional permissions. I tried to implement this example, but replaced the compute

Creating Google Calendar events with a GCP Service Account

这一生的挚爱 提交于 2020-11-25 03:44:28
问题 I would like to rig things so that my GCP service account can invite users to calendar events. So for example my-service-account@myproject.iam.gserviceaccount.com would invite user@myCorporation.com to an event. It seems to me that this should be possible simply by giving my-service-account@myproject.iam.gserviceaccount.com permission to use the Calendar API, without having user@myCorporation.com grant any additional permissions. I tried to implement this example, but replaced the compute