{"action":"closed","issue":{"url":"https://api.github.com/repos/Netflix/security_monkey/issues/183","labels_url":"https://api.github.com/repos/Netflix/security_monkey/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/security_monkey/issues/183/comments","events_url":"https://api.github.com/repos/Netflix/security_monkey/issues/183/events","html_url":"https://github.com/Netflix/security_monkey/issues/183","id":101008516,"number":183,"title":"SG check empty users","user":{"login":"huntergregal","id":6970250,"avatar_url":"https://avatars.githubusercontent.com/u/6970250?v=3","gravatar_id":"","url":"https://api.github.com/users/huntergregal","html_url":"https://github.com/huntergregal","followers_url":"https://api.github.com/users/huntergregal/followers","following_url":"https://api.github.com/users/huntergregal/following{/other_user}","gists_url":"https://api.github.com/users/huntergregal/gists{/gist_id}","starred_url":"https://api.github.com/users/huntergregal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huntergregal/subscriptions","organizations_url":"https://api.github.com/users/huntergregal/orgs","repos_url":"https://api.github.com/users/huntergregal/repos","events_url":"https://api.github.com/users/huntergregal/events{/privacy}","received_events_url":"https://api.github.com/users/huntergregal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-14T13:16:53Z","updated_at":"2015-08-14T15:16:15Z","closed_at":"2015-08-14T15:16:15Z","body":"I am trying to edit the iam_group auditor to alert on when a security group contains no users in it. currently I have in iam_group.py \r\n\r\n    def check_empty_users(self, iamgroup_item):\r\n        \"\"\"\r\n        alert when an IAM Group has no users in it.\r\n        \"\"\"\r\n        users = self.iamgroup_item.config.get('users', {})\r\n        if rows not in users:\r\n            self.add_issue(1, 'No users in security group', iamobj_item)\r\n\r\nbut it does not seem to be working. I may just be missing how the auditor functions work"}}