Service Account User is a Google Cloud IAM role that lets a principal attach a service account to resources, such as virtual machines or functions, so workloads run as that account. Attackers with this role plus resource-creation rights can borrow a more privileged service account. Grant it narrowly, on specific service accounts rather than whole projects.
What the role does in Google Cloud
Service Account User is not the service account itself, but a permission that lets one principal attach a service account to a resource so that workload can run with that service account’s authority. In practice, it is a delegation step, which means the security question is not only who can create resources, but also whose identity those resources can borrow.
That distinction matters because the role can become a privilege bridge. If a principal can both create or modify resources and attach a stronger service account, the resource may inherit permissions that the human or automation account did not directly hold.
Why it creates privilege pathways
The dangerous pattern is role chaining: a user or automation account with limited direct permissions gains indirect access by binding a more privileged service account to a compute resource. That can turn ordinary deployment or runtime access into a route to data, APIs, or administrative actions that should have stayed behind a separate identity boundary.
This is why the role should be understood as part of authorization design, not just cloud plumbing. The control decision is whether the attaching principal should ever be allowed to borrow that specific service account, and whether the target workload truly needs that level of authority.
For a broader view of how service accounts fit into identity security, Ultimate Guide to NHIs places the role inside the wider lifecycle of machine identities and delegated access.
How to scope and govern it safely
The safest pattern is to grant the role only where the attachment is operationally required, and only on the narrowest resource scope that works. A common mistake is giving the permission at a broad project level when the real need is to attach one specific service account to one specific workload.
That narrow scoping reduces the blast radius if the attaching principal is compromised or over-permissioned. It also makes reviews more meaningful, because the reviewer can validate a concrete trust relationship instead of a vague project-wide entitlement.
In Google Cloud environments, this role is often part of a larger service-account hardening story, including dedicated identities for workloads, explicit actAs boundaries, and avoidance of shared or overly powerful default accounts. See the Service Account Security Guide for the broader governance pattern.
Detection, review, and identity impact
When this permission is abused, the main identity signal is not a password theft event, but a trust-abuse event: a workload starts running under an authority that does not match the attaching principal’s expected level of access. That makes resource-creation activity, service-account attachment events, and unusual workload behaviour important review points.
Post-incident review should focus on what the borrowed service account could reach, because the impact is determined by the attached account’s permissions, not by the original caller alone. If exploitation occurred, rotate or revoke any secrets, tokens, or other credentials that the borrowed service account could access, and check whether the workload used the attached identity to reach additional systems.
The account-attachment pattern is a recurring theme in cloud compromise analysis, including Cloud Run and Cloud Functions Security Guide, which explains how service identities, invoker controls, and workload permissions combine in serverless environments.
Risk and Threat Considerations
When the role is broadly assigned, an attacker who gains a low-privilege foothold may be able to attach a more powerful service account to a resource they control. That turns a small initial permission into a privilege escalation path, especially in environments where resource creation is already allowed.
Failure mechanism: the attacker abuses delegated attachment rights to make a workload run as a service account with stronger access than the original principal should have had, then uses that borrowed authority to reach data or services.
Impact: exposed data, unauthorized API calls, lateral movement through cloud resources, and in some cases persistent access that survives the loss of the original foothold because the workload is now operating under a different identity.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
CSA Cloud Controls Matrix, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CSA Cloud Controls Matrix | IAM — Identity & Access Management | Cloud IAM governs delegated attachment of service identities to workloads. |
| Recommendation — Limit who can bind service accounts to cloud resources and review IAM bindings regularly. | ||
| NIST SP 800-53 Rev 5 | IA-9 — Service Identification and Authentication | Covers authenticating services and workloads that run under non-human identities. |
| AC-6 — Least Privilege | The role is dangerous when granted more broadly than required for the workload. | |
| Recommendation — Apply service authentication controls to prevent unauthorized workload impersonation. Restrict service-account attachment rights to the minimum scope needed for each workload. | ||
| ISO/IEC 27001:2022 | A.5.15 — Access control | Access control governs who may assign or use privileged cloud identities. |
| Recommendation — Define and enforce rules for attaching privileged service accounts to resources. | ||
| CIS Controls v8 | CIS-6 — Access Control Management | Cloud role assignment and account attachment are access control operations. |
| Recommendation — Inventory and remove unnecessary rights to attach service accounts to cloud resources. | ||
Practitioner Guidance
Common misunderstanding: this role is often treated as a harmless deployment permission, but it is really an authority-transfer control. If you grant it, you are deciding who may impersonate a service account by attaching it to runtime resources.
Practitioner takeaway: review it alongside the permissions that create or modify resources, because the security outcome comes from the combination. Narrow scope, separate duties where possible, and prefer explicit service-account assignment paths that are easy to audit.
Related resources from NHI Mgmt Group
- Service Account Governance
- What is the difference between service account risk and user account risk in AD?
- What is the difference between service account lifecycle management and user account lifecycle management?
- Who is accountable when an LLM denial-of-service event is triggered by a legitimate user or service account?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org