Viewing your Amazon Web Services account ID - Amazon Identity and Access Management
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Viewing your Amazon Web Services account ID

If you are signed into the console, you can view the account ID for your Amazon Web Services account using the following methods.

To view your Amazon Web Services account ID

classic IAM console

The Amazon account ID is displayed when you go to the IAM Dashboard in the Amazon Web Services account section. There are additional ways to view your account ID in the console depending on your user type. If you have assumed a role, Security credentials is not available.

User type Procedure

Root user

In the navigation bar at the upper right, choose your user name and then choose Security credentials. The account number appears under Account identifiers.

IAM user

In the navigation bar at the upper right, choose your user name, the account ID is displayed above your user name. Choose Security credentials. The account number appears under Account details.

Federated user session

In the navigation bar at the upper right, choose your user name, the account ID is displayed above your user name.

Assumed role

In the navigation bar at the upper right, choose the Support icon, and then choose Support Center from the list. Your currently signed-in 12-digit account number (ID) appears in the Support Center navigation pane.

Amazon CLI

Use the following command to view your user ID, account ID, and your user ARN:

API

Use the following API to view your user ID, account ID, and your user ARN: