Thanks for the clarification @fermayo.
The REST API’s Organizations endpoint does have a “List User Organizations” method that can list public organization memberships for the specified user. However, as mentioned in that description, it just includes public memberships:
“This method only lists public memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the List your organizations API instead.”
In other words, if you needed to get Public and Private organizations that the user is a member of you could create an impersonation token and then make the request to the List Your Organizations as that user, and then delete the token when you’re finished.
If you are still unable to see the orgs, please send us the full output of a
curl -v request
That should help us investigate the issue. Also, please make sure you mask any sensitive information like OAuth tokens and Authorization headers in the output of the curl command. Please send the output to https://github.com/contact. And include a link to this thread to give support some background on the ticket.
I hope this helps!