gangadhars
gangadhars

Reputation: 2728

How to restrict accessing resource from a service account in GCP

I have created two service accounts ServiceAccount1 and ServiceAccount2. ServiceAccount1 should only access Dataset1 and ServiceAccount2 should not access it.

How can I stop accessing Dataset1 from ServiceAccount2?

Upvotes: 1

Views: 101

Answers (2)

Mikhail Berlyant
Mikhail Berlyant

Reputation: 172944

In Web UI you can invoke Share Dataset Dialog
From there you can fine tune which account has what access
Read more in Access Control

Upvotes: 1

Mete Atamel
Mete Atamel

Reputation: 831

There's Cloud Identity & Access Management (IAM) feature where you can protect different cloud resources but looking at their current list of resources [0], it doesn't look like BigQuery datasets are supported yet.

[0] https://cloud.google.com/iam/docs/understanding-roles#curated_roles

Upvotes: 0

Related Questions