{"thread":{"id":"64577","subject":"Command line query for teams","startedAt":"2025-12-04T05:10:08Z","lastAt":"2025-12-04T14:05:38Z","messageCount":3,"participants":["Mark Boonie","Michiel Beijen","rsbecker@nexbridge.com"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"531642","messageId":"PH7PR15MB617958EEAF07E4C5F8CDF0C5FBA6A@PH7PR15MB6179.namprd15.prod.outlook.com","threadId":"64577","inReplyTo":null,"subject":"Command line query for teams","fromName":"Mark Boonie","fromEmail":"boonie@us.ibm.com","sentAt":"2025-12-04T05:10:04Z","receivedAt":"2025-12-04T05:10:08Z","isPatch":false,"sender":{"key":"boonie@us.ibm.com","avatar":null},"body":"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?\n\n- mb\n"},{"id":"531647","messageId":"k-decXSZ9QGZzgAzy5RoGwHGYOyGjmCnHpa951-iEy2DWj9cjViEaET6xO1HuAd-Dz23x6VYAtlfE8USIyH1zsHtsfAah6w8WllZPn8qP88=@x14.nl","threadId":"64577","inReplyTo":"PH7PR15MB617958EEAF07E4C5F8CDF0C5FBA6A@PH7PR15MB6179.namprd15.prod.outlook.com","subject":"Re: Command line query for teams","fromName":"Michiel Beijen","fromEmail":"mb@x14.nl","sentAt":"2025-12-04T08:34:56Z","receivedAt":"2025-12-04T08:35:15Z","isPatch":false,"sender":{"key":"mb@x14.nl","avatar":"https://gravatar.com/avatar/077c66aba7ce687dc4f1f33e9deb9a5bbe921a506d3759a79ddb028326d9c265?d=mp&s=160"},"body":"Hi Mark,\n\nOn Thursday, December 4th, 2025 at 06:10, Mark Boonie <boonie@us.ibm.com> wrote:\n\n> 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?\n\nWhat 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/\n\nHowever 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.\n\nI hope this helps,\n\n--\nMichiel\n"},{"id":"531657","messageId":"01c801dc6526$fdc522b0$f94f6810$@nexbridge.com","threadId":"64577","inReplyTo":"PH7PR15MB617958EEAF07E4C5F8CDF0C5FBA6A@PH7PR15MB6179.namprd15.prod.outlook.com","subject":"RE: Command line query for teams","fromName":"","fromEmail":"rsbecker@nexbridge.com","sentAt":"2025-12-04T14:04:59Z","receivedAt":"2025-12-04T14:05:38Z","isPatch":false,"sender":{"key":"randall.becker@nexbridge.ca","avatar":"https://avatars.githubusercontent.com/u/28956764?v=4"},"body":"On December 4, 2025 12:10 AM, Mark Boonie wrote:\n>I'm a git very-newbie, still trying to find my way around, so I apologize\nif the answer\n>to this question is somewhere obvious to everyone but me.  I'm looking for\na\n>command that will return the teams that I'm on.  Someone gave me the URL\n>https://github.ibm.com/orgs/ztpf/teams?query=+members%3Ame, which gives\n>me the information in a GUI, but I would like to get the information from\nthe\n>command line.  Any suggestions?\n\nHi Mark,\n\nThis is probably a function of the upstream git implementation (GitHub,\nBitBucket, GitLab, Azure). The function is likely done via a REST HTTPS API\nand is not part of core git. You might want to check with the appropriate\ndocumentation on those.\n\nRegards,\nRandall\n\n"}]}