summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go
index 19425bf04..c2429538d 100644
--- a/plugin/api.go
+++ b/plugin/api.go
@@ -98,6 +98,11 @@ type API interface {
// UpdateTeam updates a team.
UpdateTeam(team *model.Team) (*model.Team, *model.AppError)
+ // GetTeamsForUser returns list of teams of given user ID.
+ //
+ // Minimum server version: 5.6
+ GetTeamsForUser(userId string) ([]*model.Team, *model.AppError)
+
// CreateTeamMember creates a team membership.
CreateTeamMember(teamId, userId string) (*model.TeamMember, *model.AppError)