

# Viewing your Amazon Web Services account ID
<a name="console-account-id"></a>

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
<a name="console-account-id-section-1"></a>

------
#### [ Console ]

The Amazon account ID is displayed when you go to the IAM **Dashboard** in the Amazon Web Services account section. You can also view your account ID in the navigation bar at the upper right. Choose your user name, and the account ID is displayed above your user name.

![\[Account information drop-down box with account ID highlighted\]](http://docs.amazonaws.cn/en_us/IAM/latest/UserGuide/images/find-account-id.png)


------
#### [ Amazon CLI ]

Use the following command to view your user ID, account ID, and your user ARN:
+ [aws sts get-caller-identity](https://docs.amazonaws.cn/cli/latest/reference/sts/get-caller-identity.html)

------
#### [ API ]

Use the following API to view your user ID, account ID, and your user ARN:
+ [GetCallerIdentity](https://docs.amazonaws.cn/STS/latest/APIReference/API_GetCallerIdentity.html) 

------