Skip to main content

List Organizations Of A User

List public organization memberships for the specified user.

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 organizations for the authenticated user API instead.

External Documentation

To learn more, visit the GitHub documentation.

Parameters

ParameterDescription
PagePage number of the results to fetch.
Per PageThe number of results per page (max 100).
Return All PagesAutomatically fetch all resources, page by page.
UsernameThe username of the user to list organizations for.

Example Output

{
"value": [
{
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"description": "A great organization",
"events_url": "https://api.github.com/orgs/github/events",
"hooks_url": "https://api.github.com/orgs/github/hooks",
"id": 1,
"issues_url": "https://api.github.com/orgs/github/issues",
"login": "github",
"members_url": "https://api.github.com/orgs/github/members{/member}",
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
"public_members_url": "https://api.github.com/orgs/github/public_members{/member}",
"repos_url": "https://api.github.com/orgs/github/repos",
"url": "https://api.github.com/orgs/github"
}
]
}

Automation Library Example

List Organizations of a User with Github and Send Results Via Email

Automation LibraryPreview this Automation on desktop