I’m the administrator of our github enterprise (hosted on github.com, not enterprise server on-prem).
Im working on automating a process where i pull the full list of organizations (via api), and also the org owner info, so that i can have a comprehensive (and always up to date) list for our whole environment. This will help with communication with the orgs, and prevent us from having to keep a manual list which can get out of date very quickly.
But…i can’t seem to find an API endpoint or option where i can query for all organizations in the enterprise. I can pull organizations that I am a member of…but we’ll have organizations where I won’t be a member/owner (it will be administered by other people at the org level).
This is where i’ve been searching, but it’s not what’s needed: https://docs.github.com/en/rest/reference/orgs
So…would appreciate it if someone can point me in the right direction for the best way to approach this, or if i’ve just overlooked the documentation for this call. Thanks in advance for any help you might be able to offer.