cli / cli/cli

Get list of organizations for a specified user

Open
#8,186 3 comments 0 reactions 0 assignees View on GitHub
core enhancement gh-org
Dominant language
Go
Stars
46.3k
Forks
9k
Avg merge
2d 9h
Merged PRs (30d)
89

Description

### Describe the feature or problem you’d like to solve

Get list of organizations for a specified user.

### Proposed solution

- At this time, there's a `org list` command that fetches the list of organizations for the currently authenticated user: https://docs.github.com/en/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations-for-the-authenticated-user
- But it'd be nice to implement a `--user` flag to fetch organizations for a specified user: https://docs.github.com/en/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations-for-a-user

### Additional context

- `--user` (`-u`) flag matches the implementation on `run list` command.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.