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.
The method GetTeamsForUser(userId, etag string) ([]*Team, *Response) is available in model/client4.go, the Go REST API driver for Mattermost, but does not have an equivalent in the plugin API.
Not having this method in the plugin API limits what plugins can do. Hence, we would like to add an equivalent plugin API for it.
Read about adding to the plugin API here https://developers.mattermost.com/contribute/server/plugins/. Most of these methods should have fairly simple equivalents in the app package, making them trivial to implement.
You'll want to look at these files:
If you have any questions or would like feedback, feel free to ask in the Developer Toolkit channel on our Mattermost community instance.
This ticket is part of a larger campaign for adding plugin API methods. See here: https://github.com/mattermost/mattermost-server/issues/9458
Hej hej, I will take care of it
Hm okay.
Wanted to start right now but I think @czertbytes did it already.
@chclaus Sorry about that, I asked the contributor help add a note in the help wanted ticket as well so others know if it's been worked on.
If you're still interested on the plugin API methods, there are two more tickets open
If neither of them are of interest, let me know as there are a bunch of other help wanted tickets for plugin API we plan to add (some of them listed below). So I can create a few more for you to choose from. :)

Hey @jasonblais, I would like to work on the API methods related to plugins like EnablePlugins() or GetPlugins(). Would you create some tickets for them?
@jasonblais ping ^
@hanzei Sorry for missing the ping earlier.
Certainly! There are 7 plugin API methods total for plugins - are you interested working on the two specifically (EnablePlugins() and GetPlugins()) or others as well?
I would like to work on:
@hanzei Awesome! Just created a help wanted ticket for it https://github.com/mattermost/mattermost-server/issues/9740
Most helpful comment
Hej hej, I will take care of it