This topic describes how to obtain the AccessKey pair of an Alibaba Cloud account or a RAM user.

Obtain an AccessKey pair of a RAM user

You can use one of the following accounts to create an AccessKey pair for a RAM user:

  • You can use the Alibaba Cloud account to which the RAM user belongs.
  • You can use a RAM user that is assigned the administrative rights The RAM user that is assigned the administrative rights and the RAM user for which you want to create an AccessKey pair must belong to the same Alibaba Cloud account.
  • You can use a RAM user that is granted the permissions to manage AccessKey pairs. You can use the Alibaba Cloud account to which the RAM user belongs to grant the permissions. For more information, see Configure security policies for RAM users.
  1. Log on to the RAM console.
  2. In the left-side navigation pane, choose Identities > Users.
  3. On the Users page, click the username of a specific RAM user.
  4. In the User AccessKeys section, click Create AccessKey.
  5. In the View AccessKey Secret dialog box, view the AccessKey ID and AccessKey secret.

    You can click Download CSV File to download the AccessKey pair or click Copy to copy the AccessKey pair.

    Important
    • The AccessKey secret of a RAM user is displayed only after you click Create AccessKey. You cannot query the AccessKey secret in subsequent operations.
    • If the AccessKey pair of a RAM user is leaked or lost, you must create another AccessKey pair. You can create up to two AccessKey pairs for each RAM user.
  6. Click OK.

Obtain the AccessKey pair of an Alibaba Cloud account

Important

If the AccessKey pair of an Alibaba Cloud account is leaked, the resources that belong to the account are exposed to potential risks. To ensure account security, we recommend that you use the AccessKey pair of a RAM user and do not create and use the AccessKey pair of an Alibaba Cloud account.

  1. Log on to the Alibaba Cloud Management Console by using your Alibaba Cloud account.
  2. Move the pointer over the profile picture in the upper-right corner of the page that appears and click AccessKey Management.
  3. In the Note message, read the security tips and click Use Current AccessKey Pair.
  4. Click View Secret in the Actions column of an AccessKey ID, complete the verification, and view the AccessKey secret.

    You can click Download CSV File to download the AccessKey pair or click Copy to copy the AccessKey pair.