Discover Inactive Users

Discover IAM users who haven’t used the console and any access keys over a certain period.

Source codePermissions

Usage

Input

Parameter Description Type Required Default value
threshold_days Get users with no activity over this number of days int Yes None
region Region for operation string No Session default
debug Increase log verbosity bool No False
silent Decrease log verbosity bool No False
output Output format
table
string No None
session Established session object No None

Output

Returns a list of dictionaries of discovered users:

[{"UserName": "string"}]

Examples

Discover users with no activity over 30 days:

aaws iam discover_inactive_users --threshold_days 30