Cross-account roles are permissions in one cloud account that can be assumed by a principal from another account, usually through a trust policy and temporary credentials. Federated credentials let an external identity provider authenticate a human or workload and exchange that trust for short-lived access, often via SAML or OIDC. The first is account-to-account delegation, the second is identity federation.
How the two trust models differ in practice
Cross-account roles are about delegation between cloud accounts. A role in one account is made assumable by a principal from another account, so the trust boundary is primarily account to account. Federated credentials are about accepting an external identity provider as the source of authentication, then exchanging that identity for short-lived cloud access. The trust boundary is identity provider to cloud platform.
The practical difference is who vouches for the caller. With a cross-account role, the cloud account trusts a specific external principal, usually another account, to assume the role. With federated credentials, the cloud platform trusts claims from the identity provider, such as SAML assertions or OIDC tokens, and then maps those claims to a role or application permission.
This distinction matters because the controls you tune are different. Cross-account access is usually governed through trust policies, external ID conditions, and account-level guardrails. Federation is usually governed through claim scoping, issuer validation, audience restrictions, and the lifecycle of the external identity provider connection.
Where trust is established and what is being exchanged
Cross-account roles start from an already authenticated principal in another cloud account. The key question is whether that principal is allowed to assume the target role and receive temporary credentials. The identity source is still the cloud account boundary, even if the trust policy references a user, role, service, or workload in the other account.
Federated credentials start outside the cloud account boundary. An external identity provider proves who the caller is, and the cloud service exchanges that proof for temporary access. In Workload Identity Federation Guide, the important idea is that the federated assertion becomes the bridge, not a long-lived shared secret.
That is why federation is often the cleaner answer when a human, CI/CD system, or workload already has a strong external identity system. The cloud platform can trust that external assertion without needing to create and manage a separate secret for each integration.
How to choose between them for access design
Use a cross-account role when the access relationship is fundamentally cloud-to-cloud and both sides are already part of the same account governance model. Use federated credentials when the access relationship begins with an external identity provider and you want short-lived access without storing a reusable secret. The decision often comes down to whether the trust anchor is another cloud account or an identity provider.
For cross-account patterns, the main design concern is trust scope. If the trust policy is too broad, the role can become a lateral-movement path across accounts. For federated patterns, the main design concern is claim precision. If the issuer, subject, audience, or branch and repository conditions are too loose, many more identities than intended may be able to exchange trust for access.
Cross-Account and Cross-Tenant Access Guide is useful when you need the broader governance picture around delegated access, trust boundaries, and logging across accounts and tenants. It helps frame cross-account roles as one part of a wider delegated-access problem rather than a standalone permission trick.
Why the distinction matters for security and operations
Cross-account roles concentrate risk in trust policy quality and account boundary design. Federated credentials concentrate risk in identity provider configuration, claim validation, and the reliability of the federation flow. Both are designed for short-lived access, but the failure modes differ, so the troubleshooting path differs too.
A common operational mistake is treating both patterns as interchangeable because both can result in temporary cloud credentials. They are not interchangeable in governance terms. Cross-account roles usually need tighter review of who can assume the role and under what conditions. Federation usually needs tighter review of which external identities can obtain the assertion and how that assertion is constrained before it is exchanged.
For workload-heavy environments, Google Cloud IAM and Service Accounts Guide shows the adjacent pattern well: when service identities are involved, the real question is whether you are delegating through an account boundary, a workload identity bridge, or direct impersonation. Choosing the wrong model can create unnecessary credential sprawl or hidden privilege paths.
Risk and Threat Considerations
Both patterns can be abused when trust is too broad, but the abuse path differs. Cross-account roles are attractive because a single weak trust policy can open a direct path into another account. Federated credentials are attractive because a compromised identity provider, overly broad claim mapping, or weak audience check can turn one external identity into cloud access without any local password or key being stolen.
Failure mechanism: In cross-account role setups, the failure is usually overbroad trust to an external principal, weak conditional checks, or unreviewed assumption paths. In federated setups, the failure is usually loose issuer or subject scoping, bad token validation, or stale federation configuration that still trusts identities it no longer should.
Impact: The result is unauthorized temporary access that can be used for privilege escalation, lateral movement, data access, or abuse of cloud operations. Because the credentials are short lived, the compromise can be harder to spot than a stolen static secret, especially if logging and session attribution are weak.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-9 — Service Identification and Authentication | Covers federated and cross-system identity trust for non-user principals. |
| AC-6 — Least Privilege | Limits what assumed roles and federated sessions can do once access is granted. | |
| IA-5 — Authenticator Management | Supports lifecycle control over credentials, tokens and federation material. | |
| Recommendation — Use IA-9 to constrain and validate service and federated authentication paths. Apply AC-6 to restrict permissions on assumed and federated identities. Manage credential and token lifecycles with IA-5 to reduce reuse and exposure. | ||
| OWASP API Security Top 10 | API2 — Broken Authentication | Federation and token exchange failures can become authentication weaknesses. |
| Recommendation — Harden token validation and authentication flows to prevent broken auth. | ||
| CIS Controls v8 | CIS-5 — Account Management | Cross-account roles and federated access both depend on controlled account and access lifecycles. |
| Recommendation — Inventory, review and revoke delegated access paths under CIS-5. | ||
Practitioner Guidance
What to verify: For cross-account roles, verify the exact principals allowed to assume the role and whether external ID or equivalent trust conditions are enforced. For federated credentials, verify the issuer, audience, subject claims, and any environment or branch restrictions before treating the integration as safe.
Common mistake: Do not choose the model based only on convenience. If you need account-to-account delegation, force the trust policy to stay narrow. If you need federation, avoid adding a secret back into the design just because the first federation attempt is inconvenient.
Practitioner takeaway: The question is not which one is more modern, it is where trust should originate and how tightly that trust can be constrained, observed, and revoked.
Related resources from NHI Mgmt Group
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 6, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org