Skip to content

Commit

Permalink
fix: Enabling user Lifecycle check for 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Halimer committed Mar 22, 2024
1 parent d914eea commit 6b9cee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cis_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -3881,7 +3881,7 @@ def __report_cis_analyze_tenancy_data(self):

# 1.7 Check - Local Users w/o MFA
for user in self.__users:
if not(user['is_federated']) and user['can_use_console_password'] and not (user['is_mfa_activated']) and not (user['is_mfa_activated']):
if not(user['is_federated']) and user['can_use_console_password'] and not (user['is_mfa_activated']) and user['lifecycle_state']:
self.cis_foundations_benchmark_2_0['1.7']['Status'] = False
self.cis_foundations_benchmark_2_0['1.7']['Findings'].append(
user)
Expand Down

0 comments on commit 6b9cee6

Please sign in to comment.