# Do not setup access keys during initial user setup for all IAM users that have a console password

- Source: https://support.icompaas.com/support/solutions/articles/62000228288-do-not-setup-access-keys-during-initial-user-setup-for-all-iam-users-that-have-a-console-password
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [Security Controls](https://support.icompaas.com/support/solutions/62000065178) › [AWS Services](https://support.icompaas.com/support/solutions/folders/62000097507)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

## **Description:**

AWS Identity and Access Management (IAM) is a web service that helps you securely control access to AWS resources. IAM provides the infrastructure necessary to control authentication and authorization for your account.

## **Rationale:**

Requiring the additional steps be taken by the user for programmatic access after their profile has been created will give a stronger indication of intent that access keys are necessary for their work and that once the access key is established on an account, the keys may be in use somewhere in the organization.

## **Impact:**

Reduces unnecessary access to the console.

## **Default Value:**

AWS console defaults to no check boxes selected when creating a new IAM user. When creating the IAM user credentials, you have to determine what type of access they require.

## **Pre-Requisite:**

IAM User

## **Remediation:**

### **Test Plan:**

-   **AWS Console Process**
    

1.  Sign in to the AWS Management Console and open the IAM console at [https://console.aws.amazon.com/iam/](https://console.aws.amazon.com/iam/ "https://console.aws.amazon.com/iam/").
    
2.  In the left navigation pane select users.![](https://support.icompaas.com/assets/kb/7324bf894ac864bd.png)
    
3.  Click on a User where column Password age and Active key age is not set to None  ![](https://support.icompaas.com/assets/kb/dc6525d574a342c6.png)  
    
4.  Click on Security credentials Tab.![](https://support.icompaas.com/assets/kb/ec97ac7fb947d705.png)
5.  Compare the user 'Creation time to the Access Key Created\` date. ![](https://support.icompaas.com/assets/kb/9a42e596309bae6e.png)![](https://support.icompaas.com/assets/kb/5bf8f4b49c671106.png) 
    
6.   For any that match, the key was created during initial user setup.

  

**Using AWS CLI**

-   Run the following command (OSX/Linux/UNIX) to generate a list of all IAM users along with their access keys utilization:
    
      
    
    aws iam generate-credential-report   
      
    aws iam get-credential-report --query 'Content' --output text | base64 -d |   
      
    cut -d, -f1,4,9,11,14,16
    
    The output of this command will produce a table similar to the following:  
    
    user,password\_enabled,access\_key\_1\_active,access\_key\_1\_last\_used\_date,access\_ key\_2\_active,access\_key\_2\_last\_used\_date   
      
       elise,false,true,2015-04-16T15:14:00+00:00,false,N/A   
      
       brandon,true,true,N/A,false,N/A   
      
       rakesh,false,false,N/A,false,N/A    
      
       helene,false,true,2015-11-18T17:47:00+00:00,false,N/A   
      
       paras,true,true,2016-08-28T12:04:00+00:00,true,2016-03-04T10:11:00+00:00   
      
       anitha,true,true,2016-06-08T11:43:00+00:00,true,N/A
    
    ### **Implementation Plan**
    
    -   **AWS Console Process**
        
    
    1.  Sign in to the AWS Management Console and open the IAM console at [https://console.aws.amazon.com/iam/](https://console.aws.amazon.com/iam/ "https://console.aws.amazon.com/iam/").
        
    2.  In the left navigation pane select users.
        
    3.  Click on desired user.
        
    4.  Click security credentials![](https://support.icompaas.com/assets/kb/95142f86e21a55b4.png)
        
    5.  Click on the X (Delete) for keys that were created at the same time as the user profile but have not been used.  ![](https://support.icompaas.com/assets/kb/d088477cde494510.png)
        
    
      
    
    -   **Using AWS CLI**
        
    
    The following `delete-access-key` command deletes the specified access key (access key ID and secret access key) for the IAM user 
    
      
    
    aws iam delete-access-key --access-key-id <access-key-id-listed> --user-name <users-name>
    
      
    
    **Backout Plan:**
    
    -   **AWS Console Process**
        
    
    1.  Sign in to the AWS Management Console and open the IAM console at [https://console.aws.amazon.com/iam/](https://console.aws.amazon.com/iam/ "https://console.aws.amazon.com/iam/").
        
    2.  In the left navigation pane select users.
        
    3.  Click on desired user.
        
    4.  Click security credentials![](https://support.icompaas.com/assets/kb/c8742011f24b52d6.png)
        
    5.  Scroll down in Access keys Click on create access key.  ![](https://support.icompaas.com/assets/kb/6f5318e6008f8fda.png)
        
    
      
    
    **Using AWS CLI**
    
    The following `create-access-key` command creates an access key (access key ID and secret access key) for the IAM user.
    
    aws iam create-access-key --user-name <users-name>

## 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.
