list orgs returning empty

I have a client setup with a user’s access token 

Octokit::Client.new(access_token: github_identity[‘access_token’], auto_paginate: true, :accept => ‘application/vnd.github.html’)

which establishes a client with the following scopes 

read:org, read:user, repo, user:email

When using that client to list the users organizations (client.orgs), it returns an empty array, but I know the user is in multiple orgs 

Solved, this was because of Third Party access restrictions on the org 

1 Like