Mattermost-server: Allow mmctl list teams command to filter by user

Created on 1 Oct 2020  路  6Comments  路  Source: mattermost/mattermost-server

As part of this ticket, we should implement a new flag for the mmctl team list command. This new --user flag should filter the listed teams by a user. A proposed solution would be to use this endpoint:

https://api.mattermost.com/#tag/teams/paths/~1teams~1{team_id}~1members/get

to get all the members of a team and then fetch their information.

Feature request coming from https://github.com/mattermost/mmctl/issues/195

If you have questions about the ticket or you need any help, feel free to post your question in the community CLI channel or contact miguel.delacruz in https://community.mattermost.com/


If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

JIRA: https://mattermost.atlassian.net/browse/MM-29180

AreCLI Aremmctl Medium Help Wanted TecGo

All 6 comments

I would like to take this up.

I'm sorry I am quite busy at the moment so un assigning myself. If anyone else wants to take it please go ahead.

Thanks for the heads up @knrt10 馃檪

@mgdelacroix I would like to work on this issue.

Running mmctl team list --user USERNAME should list the team information for a USERNAME am I correct in assuming that?

Assigning to @prithvijit-dasgupta, but waiting for Miguel's response as well in the meantime.

Hi @prithvijit-dasgupta! Thanks for working on this issue! :slightly_smiling_face:

Yes, your assumption is correct. The idea of this change is to enable a user with the right permissions to list all the teams where --user USERNAME is a member.

Was this page helpful?
0 / 5 - 0 ratings