Listing the EIM Access Keys Associated with a User

You can get information about the access keys associated with a user. If the user does not have any associated access key, this action returns an empty list.

If you exceed the number of identical requests allowed for a configured time period, the Throttling error message is returned.

You can use this action for access keys associated with the root user. Therefore, you can use it to manage root credentials even if the OUTSCALE account has no associated EIM users.

This procedure uses AWS CLI only. Information about these resources is also available from Cockpit v1. For more information, see EIM User Interface > Users Page.

To list the access keys associated with a user, use the list-access-keys command following this syntax:

Request sample
$ aws iam list-access-keys \
    --profile YOUR_PROFILE \
    --user-name USER_NAME \

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • (optional) user-name: The common name of the user.

    If you do not specify a user name, this action lists the access keys associated with the user who sends the request.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The list-access-keys command returns the following elements:

  • AccessKeyMetadata: Information about one or more access keys associated with the specified user. This element contains the following information:

    • UserName: The name of the user with which the access key is associated.

    • Status: The state of the access key (Active | Inactive).

    • CreateDate: The date and time of the access key creation.

    • AccessKeyId: The ID of the access key.

Result sample
"AccessKeyMetadata": [
        "UserName": "USER_NAME",
        "Status": "Active",
        "CreateDate": "2016-05-12T14:58:06.364Z",
        "AccessKeyId": "NOPQR2STUVWX3YZABCDE"
        "UserName": "USER_NAME",
        "Status": "Inactive",
        "CreateDate": "2015-09-26T12:12:32.201Z",
        "AccessKeyId": "FGHIJKLMNOPQ4RSTUVWX"

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.