Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to know user created in AWS has what access

I Have users created in AWS, but I am not able to locate if they have been only given programmatic access or console access or they have been provided with both.

is there a way to check , edit, or know what type of access is being used by a user.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

In the console, you can see it in the Security Credentials Tab of the User in IAM:
enter image description here

If the list of Access keys is not empty and at least one entry is active, it means they have programmatic access.

From the CLI you can also get this information. Erik showed you the command to list the access keys for a user to check if they have programmatic access.

$ aws iam list-access-keys --user-name raspi --no-cli-pager
{
    "AccessKeyMetadata": [
        {
            "UserName": "raspi",
            "AccessKeyId": "AKIA2BFBC12345KHW4",
            "Status": "Active",
            "CreateDate": "2021-07-07T07:42:37+00:00"
        }
    ]
}

To figure out if a user can log in to the console, you need to check if they have a login profile:

$ # This user can login
$ aws iam get-login-profile --user-name raspi --no-cli-pager
{
    "LoginProfile": {
        "UserName": "raspi",
        "CreateDate": "2021-07-07T07:42:37+00:00",
        "PasswordResetRequired": false
    }
}
$ # This user can't login to the console
$ aws iam get-login-profile --user-name ses-demo-sender --no-cli-pager

An error occurred (NoSuchEntity) when calling the GetLoginProfile operation: Login Profile for User ses-demo-sender cannot be found.
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading