Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to query iam users and group by accesskeyid #16

Open
pricy opened this issue Dec 14, 2021 · 0 comments
Open

Add ability to query iam users and group by accesskeyid #16

pricy opened this issue Dec 14, 2021 · 0 comments

Comments

@pricy
Copy link

pricy commented Dec 14, 2021

This is a feature request to add ability to query iam user access key ids and group by count. I would like to be able to see which iam users have more than 1 access key ids. Not sure if this query would be correct but I am looking for something close to this.

SELECT
resourceId,
resourceName,
resourceType,
resourceCreationTime,
tags,
configuration.accessKeyId
COUNT(*)
WHERE
resourceType = 'AWS::IAM::User'
GROUPBY
configuration.accessKeyId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant