summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2018-08-29 14:07:27 -0400
committerChristopher Speller <crspeller@gmail.com>2018-08-29 11:07:27 -0700
commit9c76d9ba0031ee4175db6960024d61c23cc98659 (patch)
tree798c48c4064fcafe2401516436967af208288b1d /plugin/api.go
parent0da5c852f05faf6c08026b9a16f8362564b27915 (diff)
downloadchat-9c76d9ba0031ee4175db6960024d61c23cc98659.tar.gz
chat-9c76d9ba0031ee4175db6960024d61c23cc98659.tar.bz2
chat-9c76d9ba0031ee4175db6960024d61c23cc98659.zip
Add GetLDAPUserAttributes method to the plugin API (#9326)
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go6
1 files changed, 6 insertions, 0 deletions
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)