{"action":"created","issue":{"url":"https://api.github.com/repos/gheeres/node-activedirectory/issues/79","labels_url":"https://api.github.com/repos/gheeres/node-activedirectory/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/gheeres/node-activedirectory/issues/79/comments","events_url":"https://api.github.com/repos/gheeres/node-activedirectory/issues/79/events","html_url":"https://github.com/gheeres/node-activedirectory/issues/79","id":78255075,"number":79,"title":"getUsersForGroup Doesn't Return Values When options are specified","user":{"login":"grmacdonald","id":12519213,"avatar_url":"https://avatars.githubusercontent.com/u/12519213?v=3","gravatar_id":"","url":"https://api.github.com/users/grmacdonald","html_url":"https://github.com/grmacdonald","followers_url":"https://api.github.com/users/grmacdonald/followers","following_url":"https://api.github.com/users/grmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/grmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/grmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grmacdonald/subscriptions","organizations_url":"https://api.github.com/users/grmacdonald/orgs","repos_url":"https://api.github.com/users/grmacdonald/repos","events_url":"https://api.github.com/users/grmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/grmacdonald/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gheeres/node-activedirectory/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-19T21:21:35Z","updated_at":"2015-05-20T15:13:12Z","closed_at":null,"body":"Hi.  When I do a getUsersForGroup without using the Options parameter it returns all members of the group.  When I add the optional parameters it doesn't return any records (optional params work fine with other calls.)  No error is returned, just no records.  Code is as follows:\r\n\r\n\t\tvar opts = {\r\n\t\t  attributes: ['cn']\r\n\t\t};\r\n\t\t\r\n\t\tad.getUsersForGroup(opts,'AD Group', function(err, contactList) {\r\n\t\t\tif (err) {\r\n\t\t\t\tlogging.logMessage('ERROR: ' +JSON.stringify(err));\r\n\t\t\t\tres.render('contacts', { title: 'Contact List', contactList: 'none' });\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif (! contactList) {\r\n\t\t\t\tlogging.logMessage(' not found.');\r\n\t\t\t\tres.render('contacts', { title: 'Contact List', contactList: 'none' });\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tlogging.logMessage('Users for: Dispenser Configuration');\r\n\t\t\t\tconsole.log(contactList);\r\n\t\t\t\tres.render('contacts', { title: 'Contact List', contactList: contactList });\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gheeres/node-activedirectory/issues/comments/103922059","html_url":"https://github.com/gheeres/node-activedirectory/issues/79#issuecomment-103922059","issue_url":"https://api.github.com/repos/gheeres/node-activedirectory/issues/79","id":103922059,"user":{"login":"gheeres","id":1309506,"avatar_url":"https://avatars.githubusercontent.com/u/1309506?v=3","gravatar_id":"","url":"https://api.github.com/users/gheeres","html_url":"https://github.com/gheeres","followers_url":"https://api.github.com/users/gheeres/followers","following_url":"https://api.github.com/users/gheeres/following{/other_user}","gists_url":"https://api.github.com/users/gheeres/gists{/gist_id}","starred_url":"https://api.github.com/users/gheeres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gheeres/subscriptions","organizations_url":"https://api.github.com/users/gheeres/orgs","repos_url":"https://api.github.com/users/gheeres/repos","events_url":"https://api.github.com/users/gheeres/events{/privacy}","received_events_url":"https://api.github.com/users/gheeres/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T15:13:12Z","updated_at":"2015-05-20T15:13:12Z","body":"I just pushed a new commit. The custom opts/attribute handling was not consistently applied. Please pull down the GIT version and test."}}