Add GetLDAPUserAttributes method to the plugin API (#9326)

Этот коммит содержится в:
Joram Wilander
2018-08-29 14:07:27 -04:00
коммит произвёл Christopher Speller
родитель 0da5c852f0
Коммит 9c76d9ba00
4 изменённых файлов: 77 добавлений и 0 удалений

Просмотреть файл

@@ -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)