Cross project management using service account

0 votes
I need a service account that can access multiple projects, but I have not been able to find a way to do this at all. It seems that a service account is always bound to a project.

Another option is to create a service account on the separate projects and then authenticate them using gcloud auth activate-service-account --key-file SOME_FILE.json, but the problem here is that it does not seem possible to automate the creation of service accounts.

So the question is then: Is it possible to create a cross project service account or to automate the creation of a service accounts? Even better would be if I could do both
Apr 12, 2022 in PMP by Edureka
• 13,690 points
769 views

1 answer to this question.

0 votes
A service account should be able to be added to another project:

In the Cloud Console, create the first service account for project A. Using gcloud auth activate-service-account, turn it on.

Navigate to project B in the Cloud Console. Go to "IAM & admin" > "IAM" to find the "IAM" page. Select "Add" from the drop-down menu. Paste the name of the service account (it should appear like a funny email address) and assign it the proper role in the "New members" column.

Run gcloud scripts with project B as the —project parameter. They should be successful (I just manually verified that this will work).

We're hesitant to automate the establishment of service accounts until we've thoroughly investigated the security implications.
answered Apr 13, 2022 by gaurav
• 23,260 points

Related Questions In PMP

0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

What do you think of PMaas? (Project Management as a service)

In my opinion, there are some conditions ...READ MORE

answered Aug 20, 2020 in PMP by Rajiv
• 8,870 points
678 views
0 votes
1 answer

What are the challenges of project management?

Managing projects is tough. We hear a ...READ MORE

answered Jul 22, 2020 in PMP by Gitika
• 65,770 points
1,464 views
0 votes
1 answer

How do I find a Job in project management?

There's always a challenge finding a position ...READ MORE

answered Jul 22, 2020 in PMP by Gitika
• 65,770 points

edited Jul 22, 2020 by Gitika 561 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP