You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select user from foo where (access_key_1_active = 'true' and date(access_key_1_last_used_date) < date('now', 'start of month', '-1 month')) or (access_key_2_active = 'true' and date(access_key_2_last_used_date) < date('now', 'start of month', '-1 month')) ;
4) keys assigned to console users
select user from foo where password_enabled = 'true' and (access_key_1_active = 'true' or access_key_2_active = 'true');
5) all users with passwords are recently active
select user from foo where password_last_used < date('now', '-1 month');
6) Look at keys or passwords that are greater than 1 year old
select user from foo where (access_key_1_active = 'true' and date(access_key_1_last_used_date) < date('now', 'start of month', '-1 month')) or (access_key_2_active = 'true' and date(access_key_2_last_used_date) < date('now', 'start of month', '-1 month')) ;