in hq/app/logic/IamUnrecognisedUsers.scala [52:63]
def unrecognisedUsersForAllowedAccounts(
accountCredsReports: List[(AwsAccount, CredentialReportDisplay)],
janusUsernames: List[String],
allowedAccountIds: List[String]
): List[AccountUnrecognisedUsers] = {
for {
(acc, crd) <- accountCredsReports
accountUsers = AccountUnrecognisedUsers(acc, filterUnrecognisedIamUsers(crd.humanUsers, janusUsernames))
accountId = accountUsers.account.id
if accountUsers.unrecognisedUsers.nonEmpty && allowedAccountIds.contains(accountId)
} yield accountUsers
}