# Ensure access keys are setup for all IAM users that have a console password

- Source: https://support.icompaas.com/support/solutions/articles/62000083114-ensure-access-keys-are-setup-for-all-iam-users-that-have-a-console-password
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [AWS CIS Benchmark Level 1](https://support.icompaas.com/support/solutions/62000039484) › [CIS Control 16](https://support.icompaas.com/support/solutions/folders/62000066021)
- Last updated: 2026-06-08
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

Profile Applicability: Level 1

  

Description: 

Access keys are long-term credentials for an IAM user, You can use access keys to sign programmatic requests to the AWS CLI or AWS API. Some time many access keys generate unnecessarily, this unnecessary credentials also generate unnecessary management work in auditing and rotating these keys.

Rationale: 

Requiring that additional steps be taken by the user after their profile has been created will give a stronger indication of intent that access keys are:

-   Necessary for their work
    
-   Once the access key is established on an account that the keys may be in use somewhere in the organization.
    

Note: Even if it is known the user will need access keys, require them to create the keys themselves, or put a support ticket to have the created as a separate step from user creation.

  

Impact:

All IAM users have a console password with an access key by controlling their privileges, which helps you to maintain a secure AWS environment. These privileges are necessary to perform the assigned task. Application users should use only access keys to programmatically access data in AWS.

  

Default Value:

When we create an IAM user AWS provides a facility to set a checkbox (Programmatic access) for creating access key enabled.  
 

If we checkmark on the check box of Programmatic access it automatically generates the access key.

If we will not click on the check box of Programmatic access it will not enable the access key automatically. 

Pre-Requisite:

-   If you want to create access keys for all the IAM users you need Admin access
    
-   By creating keys you are giving programmatic access to user
    

  

Remediation:

Test Plan:

1.  Log in to the AWS Management Console
    
2.  Navigate to IAM service [https://console.aws.amazon.com/iam/](https://console.aws.amazon.com/iam/)
    
3.  Click on Users in the left navigation pane.
    
4.  In the table see the access key for the user is created or not 
    

5.  There is None for a user in the above pic it means for this user no access key generate
    

  

Using AWS CLI:

List out all IAM users within your account by using the below command

aws iam list-users --query 'Users\[\*\].UserName'

To list out the access key of a user using the IAM user name that you want to examine 

aws iam list-access-keys --user-name < name of IAM user>

  

Implementation Steps:

Perform the following Steps access key:-

1.  Log in to the AWS Management Console.
    
2.  Navigate to IAM service [https://console.aws.amazon.com/iam/](https://console.aws.amazon.com/iam/).
    

  

3.  Click on Users in the left navigation pane. 
    
4.  Click on the User name.
    

5.  Click on the Security credentials tab.
    

6.  Scroll down and go to the Access Key column and click on  Create access key button.
    

  

Using AWS CLI:

1.  Follow the step to create an access key for an IAM user
    

aws iam create-access-key --user-name < Name of User> 

  

Backout Plan:

1.  Follow the steps to remove the access key:
    
2.  Follow the implementation steps upto 5 steps
    
3.  Click on Deactivate if you want to make it inactive.
    

  

Using AWS CLI:

1.  Use the following command to delete an access key for an IAM user
    

aws iam delete-access-key --user-name < name of IAM user> --access-key-id <access\_key\_id>

  

References:

-   [Managing access keys for IAM users - AWS Identity and Access Management](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html) 
    
-   [Create an access key for an IAM user - AWS Command Line Interface](https://docs.aws.amazon.com/cli/latest/userguide/cli-services-iam-create-creds.html)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
