# External ID

Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.

An external ID is a value that a third party presents when it assumes a role in your account, set as an sts:ExternalId condition in the role's trust policy. It prevents the confused deputy problem for third-party access. AWS does not treat it as a secret, and it is from 2 to 1,224 characters long.

## An example, sourced

AWS says the primary function of the external ID is to address and prevent the confused deputy problem, that it is not treated as a secret because anyone who can view the role can see it, and that it should not be something guessable such as the name of the third party.

## Why it matters here

A trust policy that names a third party's account with no external ID leaves the confused deputy gap open. The workbench flags that case.

## Related pages

- [Confused deputy problem: meaning and an example](/glossary/confused-deputy-problem/)
- [OIDC identity provider: meaning and an example](/glossary/oidc-identity-provider/)
- [IAM role: meaning and an example](/glossary/iam-role/)
- [All of them](/glossary/)

## Sources

- https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://iampolicygenerator.com/glossary/external-id/

This site is not affiliated with Amazon Web Services. AWS service and product names are used only to describe AWS services.
