From 9c76d9ba0031ee4175db6960024d61c23cc98659 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 29 Aug 2018 14:07:27 -0400 Subject: Add GetLDAPUserAttributes method to the plugin API (#9326) --- plugin/api.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugin/api.go') diff --git a/plugin/api.go b/plugin/api.go index 370c28268..2f8c6dcc5 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -62,6 +62,12 @@ type API interface { // The status parameter can be: "online", "away", "dnd", or "offline". UpdateUserStatus(userId, status string) (*model.Status, *model.AppError) + // GetLDAPUserAttributes will return LDAP attributes for a user. + // The attributes parameter should be a list of attributes to pull. + // Returns a map with attribute names as keys and the user's attributes as values. + // Requires an enterprise license, LDAP to be configured and for the user to use LDAP as an authentication method. + GetLDAPUserAttributes(userId string, attributes []string) (map[string]string, *model.AppError) + // CreateTeam creates a team. CreateTeam(team *model.Team) (*model.Team, *model.AppError) -- cgit v1.2.3-1-g7c22