---
id: "aws_iam_unique_id"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["identifiers"]
langs: ["common"]
quality: 85
url: "https://registry.apicrafter.io/datatype/aws_iam_unique_id"
---

# AWS IAM unique identifier (`aws_iam_unique_id`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Unique ID that IAM assigns to a user, user group, role, policy, instance profile, certificate or public key. A four-letter prefix gives the resource type: AIDA (user), AGPA (user group), AROA (role), ANPA (managed policy), ANVA (policy version), AIPA (instance profile), ASCA (certificate), APKA (public key), ABIA (STS bearer token) and ACCA (context-specific credential). The documented examples have 17 more uppercase letters and digits. Access key IDs (AKIA, ASIA) are the datatype aws_access_key_id.

- Personal data (PII): no
- Categories: Universal unique identifiers (identifiers)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:ABIA|ACCA|AGPA|AIDA|AIPA|ANPA|ANVA|APKA|AROA|ASCA)[A-Z0-9]{17}$
```

## Examples

- `AIDAJQABLZS4A3QDU576Q` — Unique ID of a user from the AWS documentation
- `AROADBQP57FF2AEXAMPLE` — Unique ID of a role from the AWS documentation
- `AKIAIOSFODNN7EXAMPLE` (invalid example) — Access key ID, a different datatype

## Supported by tools

- `pywhat`

## Sources

- doc: <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html>

## Quality

Score 85/100. Missing: mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/aws_iam_unique_id.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/identifiers/aws_iam_unique_id.yaml>
