Join our Newsletter — 33% off our NHI Course
Governance, Ownership & Risk

External ID

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Governance, Ownership & Risk

In AWS, an External ID is a value a third party must supply when assuming a role in a customer's account, checked by a condition in the role's trust policy. It mitigates the confused deputy problem, where a vendor is tricked into acting on another customer's account. It is not a secret, so use a unique value per customer.

What External ID Does in AWS Trust Boundaries

External ID is a trust-policy condition that helps a customer verify who is assuming a role and why. It exists specifically for third-party access patterns, where the customer wants the vendor to prove it is acting for the intended tenant before AWS issues temporary permissions.

This matters because the value is checked during role assumption, not after access is granted. In practice, the control reduces the chance that a vendor, integration, or broker can be tricked into using a role on the wrong customer’s resources.

Why External ID Exists at All

The core problem is the confused deputy pattern: a trusted third party can be induced to use its legitimate access in a way that benefits the wrong requester. External ID gives the customer a tenant-specific discriminator so the role trust policy can distinguish one customer relationship from another.

That is why External ID is not treated like a password or shared secret. Its purpose is correlation and tenant binding, not confidentiality. A strong implementation still assumes the vendor may hold many customer-specific values and must present the right one for the right account.

How It Fits into AWS Role Assumption

In AWS, External ID is normally part of an STS AssumeRole trust design. The customer account owns the role, the vendor assumes it, and the trust policy enforces the condition before AWS returns temporary credentials.

The design is strongest when paired with other trust-policy constraints, such as a narrow principal, source conditions, and a clear review process for cross-account access. If the trust policy is too broad, External ID becomes only one check in a larger trust boundary rather than a complete safeguard.

For deeper operational context on this pattern, see AWS STS and AssumeRole Guide and How to review AWS cross-account trust policies for confused deputy.

Common Misunderstandings and Good Practice

The most common mistake is treating External ID as a secret to protect. It is better understood as a uniqueness and verification value, so it should be distinct per customer and incorporated into the vendor onboarding model and the customer’s trust policy review.

Another mistake is assuming the same External ID design is enough on its own. It should sit inside a broader cross-account access model that also covers least privilege, offboarding, and monitoring of the vendor relationship.

Practical guidance for this broader pattern is covered in Cross-Account Roles vs Resource-Based Policies and Cloud IAM Role Design Standard Template.

Risk and Threat Considerations

External ID mainly reduces a trust-boundary failure, but the risk returns quickly if the same value is reused, omitted, or not checked consistently across customer tenants. In vendor integrations, that can turn a valid role into a cross-tenant access path and recreate the confused deputy condition.

Failure mechanism: A third party accepts an assumption request without proving the intended customer context, or the trust policy fails to enforce the context check, so a requester can obtain access under the wrong tenant relationship.

Impact: The wrong customer account or dataset can be exposed through a legitimate vendor role, which can expand blast radius, complicate incident response, and make offboarding or access review less reliable.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-9 — Service Identification and AuthenticationCovers service-to-service or third-party role assumption trust checks.
AC-6 — Least PrivilegeExternal ID supports constrained cross-account access with narrow authorization.
Recommendation — Apply IA-9 to require strong trust conditions before issuing cross-account access. Limit each vendor role to the minimum permissions needed for its tenant-specific task.
CIS Controls v8CIS-5 — Account ManagementExternal ID is part of governing third-party account and access relationships.
Recommendation — Track, review, and remove cross-account vendor access paths as part of account management.
NIST CSF 2.0PR.AA-05 — Identity Management, Authentication and Access ControlThe term is about controlling access during role assumption and trust evaluation.
GV.OC-02 — Cybersecurity roles, responsibilities, and authorities are established, communicated, and coordinatedCustomer-vendor role assumption needs explicit ownership and authority assignment.
Recommendation — Use PR.AA-05 to validate who may assume a role and under what conditions. Define ownership for every cross-account trust relationship and document approval authority.

Practitioner Guidance

Why practitioners should care: External ID is a control-plane decision, not a naming convention. It belongs in the customer’s trust policy design, vendor onboarding checklist, and access review workflow so the relationship is explicit and auditable.

Governance implication: Treat each customer-vendor relationship as its own trust relationship, with a unique External ID, documented ownership, and a clear review path for changes, renewal, and offboarding.

Practitioner takeaway: If the vendor can assume roles for multiple customers, make the trust policy prove tenant intent every time, and review the whole cross-account pattern rather than the External ID in isolation.

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.

NHIMG Editorial Note
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