{"action":"opened","issue":{"url":"https://api.github.com/repos/octokit/octokit.rb/issues/806","repository_url":"https://api.github.com/repos/octokit/octokit.rb","labels_url":"https://api.github.com/repos/octokit/octokit.rb/issues/806/labels{/name}","comments_url":"https://api.github.com/repos/octokit/octokit.rb/issues/806/comments","events_url":"https://api.github.com/repos/octokit/octokit.rb/issues/806/events","html_url":"https://github.com/octokit/octokit.rb/issues/806","id":181532598,"number":806,"title":"Cant retrieve member list","user":{"login":"mcoeadmin","id":11636178,"avatar_url":"https://avatars.githubusercontent.com/u/11636178?v=3","gravatar_id":"","url":"https://api.github.com/users/mcoeadmin","html_url":"https://github.com/mcoeadmin","followers_url":"https://api.github.com/users/mcoeadmin/followers","following_url":"https://api.github.com/users/mcoeadmin/following{/other_user}","gists_url":"https://api.github.com/users/mcoeadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/mcoeadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcoeadmin/subscriptions","organizations_url":"https://api.github.com/users/mcoeadmin/orgs","repos_url":"https://api.github.com/users/mcoeadmin/repos","events_url":"https://api.github.com/users/mcoeadmin/events{/privacy}","received_events_url":"https://api.github.com/users/mcoeadmin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-06T21:38:50Z","updated_at":"2016-10-06T21:38:50Z","closed_at":null,"body":"Hello,\r\nI'm trying to use this gem to perform a montlhy audit of Github users in my company. Since it is a company the members are listed as private. Even though I'm logging in as a Owner user I cant use the methods. Any way you can help?\r\n\r\nHere is the ruby script I'm trying to run:\r\n\r\nrequire 'octokit'\r\n\r\nputs \"Logging in....\"\r\n\r\ngitObject = Octokit::Client.new(:login => 'username', :password => 'password')\r\n#Get Comapany Name\r\ncompanyName = 'company-name'\r\nputs companyName\r\n\r\n#Get Company\r\ncompany = Octokit.org(companyName)\r\n# Gets list of users\r\n\r\nmembers_list = Octokit.org_repositories(companyName)\r\nputs members_list.length\r\n\r\nThe member list comes as 0."}}
{"actor":{"display_login":"mcoeadmin"}}