Using Console
Using CLI
[PROJECT_ID]
with your project ID and [SERVICE_ACCOUNT_EMAIL]
with the email address of the service account.[PROJECT_ID]
with your project ID and [SERVICE_ACCOUNT_EMAIL]
with the email address of the service account.This should remediate the misconfiguration “User Managed Service Account Should Not Have Admin Privileges” in GCP using GCP CLI.Using Python
path/to/service_account_key.json
with the path to your service account key file and PROJECT_ID
with your GCP project ID.PROJECT_ID
with your GCP project ID and set the user_managed_service_account
variable to the email address of the user-managed service account that you want to remove the admin role from.These steps will remediate the misconfiguration “User Managed Service Account Should Not Have Admin Privileges” in GCP using Python.