Inconsistent organization results

community-help

#1

Hello,

According to my user settings inside github I am currently a member of 7 organizations:

A: member and collaborator on 1 repository
B: outside collaborator on 1 repository
C: member
D: owner
E: owner
F: owner
G: owner

I would expect that when running a query listing my (viewer) organizations that it would return all 7.

However when I run:

{
  viewer {
		organizations(first:50) {
      nodes {
        name,
      }
    }
  }
}

The response is:

{
  "data": {
    "viewer": {
      "organizations": {
        "nodes": [
          {
            "name": "D"
          },
          {
            "name": "F"
          },
          {
            "name": "G"
          },
          {
            "name": "E"
          }
        ]
      }
    }
  }
}

Even more confusing to me, is attempting to use the user/orgs endpoint on the v3 api as well.

https://api.github.com/user/orgs?access_token=tok

results in: D, A, E

I’m just curious if I’m doing something wrong here? I feel like For some reason it’s not returning all the information I have access to?
In addition to that, I’m not really sure why v3 results != v4 results. Shouldn’t the data returned between the versions be consistent?