Add ability for an admin to migrate a user with email/password to LDAP from the API

Description

Use case from a customer: Want to be able to use the API to create LDAP-connected users and in turn automatically assign them to teams. Right now the only way is to

  • create users via the APIs, with email/password auth

  • use the CLI to migrate users over to LDAP

Proposed change: Migrate existing users to LDAP through the APIs, in addition to the CLI. Would like to have the ability to migrate users en masse or individually using the Go API and/or the RESTful API.

2) Community request (from the same customer): https://mattermost.uservoice.com/forums/306457-general/suggestions/31244716-allow-migration-of-users-e-g-to-ldap-using-rest

QA Test Steps

None

Mana

None

Assignee

Joram Wilander

QA Assignee

Lindy Isherwood

Reporter

Harrison Healey

Epic Link

None

Fix versions

Mattermost Team

None

Sprint

None

Labels

QA Testing Areas

API

GitHub Issue

None

Components

None
Configure