GraphQL API v4 - Search user by company field

I’m looking to search for users who claim to be associated with a particular company. Unfortunately, I cannot reverse search by organization -> users because not I’m not looking for users who are actually a member of the organization, I’m looking for members who are claiming to be a part of the organization via the “company” field. The only way I can think of to do this presently is to hit the /users/ endpoint (on v3) and pull down all the users (Would take about a month of continuous hitting the API if I distributed it across myself and 9 friends) and put that in a database, then query for the users I’m interested in. There has got to be a better way, right?



Bump - Anyone know of a good way to do this?

Hi @rhynorater,

Thank you for being here! Maybe this query could help as base?

  organization(login: "github") {
    (first: 100) {
      nodes {
        ... on User {

nope, this is not what topicstarter asking

this works only if a user define org in their profile 

I would like to know also how to search all users by a company name in the profile not the org

1 Like