# Command line query for teams

3 messages from 2025-12-04 to 2025-12-04. Participants: Mark Boonie, Michiel Beijen, rsbecker@nexbridge.com.
Thread: https://gitlist.dev/t/64577

## Mark Boonie, 2025-12-04 05:10

Subject: Command line query for teams
Message-ID: <PH7PR15MB617958EEAF07E4C5F8CDF0C5FBA6A@PH7PR15MB6179.namprd15.prod.outlook.com>
URL: https://gitlist.dev/e/PH7PR15MB617958EEAF07E4C5F8CDF0C5FBA6A%40PH7PR15MB6179.namprd15.prod.outlook.com

```
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, 2025-12-04 08:34

Subject: Re: Command line query for teams
Message-ID: <k-decXSZ9QGZzgAzy5RoGwHGYOyGjmCnHpa951-iEy2DWj9cjViEaET6xO1HuAd-Dz23x6VYAtlfE8USIyH1zsHtsfAah6w8WllZPn8qP88=@x14.nl>
URL: https://gitlist.dev/e/k-decXSZ9QGZzgAzy5RoGwHGYOyGjmCnHpa951-iEy2DWj9cjViEaET6xO1HuAd-Dz23x6VYAtlfE8USIyH1zsHtsfAah6w8WllZPn8qP88%3D%40x14.nl
In-Reply-To: <PH7PR15MB617958EEAF07E4C5F8CDF0C5FBA6A@PH7PR15MB6179.namprd15.prod.outlook.com>

```
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, 2025-12-04 14:04

Subject: RE: Command line query for teams
Message-ID: <01c801dc6526$fdc522b0$f94f6810$@nexbridge.com>
URL: https://gitlist.dev/e/01c801dc6526%24fdc522b0%24f94f6810%24%40nexbridge.com
In-Reply-To: <PH7PR15MB617958EEAF07E4C5F8CDF0C5FBA6A@PH7PR15MB6179.namprd15.prod.outlook.com>

```
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


```
