threads / discuss / 64577

Command line query for teams

Subject: Command line query for teams

## tl;dr

3 messages between Dec 4, 2025 and Dec 4, 2025.

replies: 2people: 3as markdown or json

Mark Boonie· Dec 4, 2025, 05:10 UTC · lore
I'm a git very-newbie, still trying to find my way around, so I apologize if the answer to this question is somewhere obvious to everyone but me.  I'm looking for a command that will return the teams that I'm on.  Someone gave me the URL https://github.ibm.com/orgs/ztpf/teams?query=+members%3Ame, which gives me the information in a GUI, but I would like to get the information from the command line.  Any suggestions?
- mb
Michiel Beijen· Dec 4, 2025, 08:34 UTC · re: Mark Boonie · lore

Re: Command line query for teams

Hi Mark,
On Thursday, December 4th, 2025 at 06:10, Mark Boonie <boonie@us.ibm.com> wrote:
> I'm a git very-newbie, still trying to find my way around, so I apologize if the answer to this question is somewhere obvious to everyone but me. I'm looking for a command that will return the teams that I'm on. Someone gave me the URL https://github.ibm.com/orgs/ztpf/teams?query=+members%3Ame, which gives me the information in a GUI, but I would like to get the information from the command line. Any suggestions?
What you're looking for is not a git feature but a feature from GitHub. GitHub takes the git source control system and adds authentication, issues and pull requests and many more things 'on top'. GitHub has their own command line utility called 'gh' that you can install, see https://cli.github.com/
However it does not expose the info you're looking for directly. You can use it to request the teams in a given organization, and then you can request for each teams the members and check if you are in it.
I hope this helps,

-- Michiel

rsbecker@nexbridge.com· Dec 4, 2025, 14:04 UTC · re: Mark Boonie · lore

RE: Command line query for teams

On December 4, 2025 12:10 AM, Mark Boonie wrote:
>I'm a git very-newbie, still trying to find my way around, so I apologize
if the answer
>to this question is somewhere obvious to everyone but me.  I'm looking for
a
>command that will return the teams that I'm on.  Someone gave me the URL
>https://github.ibm.com/orgs/ztpf/teams?query=+members%3Ame, which gives
>me the information in a GUI, but I would like to get the information from
the
>command line.  Any suggestions?
Hi Mark,

This is probably a function of the upstream git implementation (GitHub, BitBucket, GitLab, Azure). The function is likely done via a REST HTTPS API and is not part of core git. You might want to check with the appropriate documentation on those.

Regards, Randall

← back to recent threads