View AWS account identifiers
Important
The following AWS Identity and Access Management (IAM) actions
will reach the end of standard support on July 2023:
aws-portal:ModifyAccount
and aws-portal:ViewAccount
.
See the Using fine-grained AWS Billing actions to replace these actions with
fine-grained actions so you have access to AWS Billing, AWS Cost Management, and AWS
accounts consoles.
If you created your AWS account or AWS Organizations Management
account before March 6, 2023, the fine-grained actions will be effective starting
July 2023. We recommend you to add the fine-grained actions, but not remove your
existing permissions with aws-portal
or purchase-orders
prefixes.
If you created your AWS account or AWS Organizations Management account on or after March 6, 2023, the fine-grained actions are effective immediately.
AWS assigns the following unique identifiers to each AWS account:
- AWS account ID
-
A 12-digit number, such as 012345678901, that uniquely identifies an AWS account. Many AWS resources include the account ID in their Amazon Resource Names (ARNs). The account ID portion distinguishes resources in one account from the resources in another account. If you're an AWS Identity and Access Management (IAM) user, you can sign in to the AWS Management Console using either the account ID or account alias. While account IDs, like any identifying information, should be used and shared carefully, they are not considered secret, sensitive, or confidential information.
- Canonical user ID
-
An alpha-numeric identifier, such as
79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be
, that is an obfuscated form of the AWS account ID. You can use this ID to identify an AWS account when granting cross-account access to buckets and objects using Amazon Simple Storage Service (Amazon S3). You can retrieve the canonical user ID for your AWS account as either the root user or an IAM user.
You must be authenticated with AWS to view these identifiers.
Warning
Do not provide your AWS credentials (including passwords and access keys) to a third party that needs your AWS account identifiers to share AWS resources with you. Doing so would give them the same access to the AWS account that you have.
Find your AWS account ID
You can find the AWS account ID using either the AWS Management Console or the AWS Command Line Interface (AWS CLI). In the console, the location of the account ID depends on whether you're signed in as the root user or an IAM user. The account ID is the same whether you're signed in as the root user or an IAM user.
Finding your account ID as the root user
Find your account ID as an IAM user
Find the canonical user ID for your AWS account
You can find the canonical user ID for your AWS account using the AWS Management Console or the AWS CLI. The canonical user ID for an AWS account is specific to that account. You can retrieve the canonical user ID for your AWS account as the root user, a federated user, or an IAM user.