Reputation: 1011
Google APIs Service Agent service account deleted by mistake in google console, how to recover it. This is a default account google creates whenever enabling an API within the platform and it is given the permission Editor
which is usually flagged by GRC tools.
I successfully created other service account using cloud console, how to recover this one, Please guide
Upvotes: 6
Views: 3144
Reputation: 1011
Resolved using this in gcloud console:
gcloud projects add-iam-policy-binding <PROJECT_ID> \
--member serviceAccount:<PROJECT_NUMBER>@cloudservices.gserviceaccount.com \
--role roles/editor
<PROJECT_NUMBER>
, a 12-digit number, may be obtained from the output of gcloud project list
, or, in case your project list is really uncomfortably long, from the string <PROJECT_ID>
with
gcloud projects describe <PROJECT_ID> --format='get(projectNumber)'
.
Upvotes: 8