Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack import conflicts with externally-managed users #10912

Open
ThiefMaster opened this issue May 22, 2019 · 1 comment
Open

Slack import conflicts with externally-managed users #10912

ThiefMaster opened this issue May 22, 2019 · 1 comment
Labels
Bug Report/Open Bug report/issue

Comments

@ThiefMaster
Copy link
Contributor

Summary

Importing from Slack creates users, with username/email combos that might conflict with data from SSO.

Steps to reproduce

  • Enable SSO (e.g. GitLab)
  • Have a user in SSO with username foo and email foo@example.com
  • Have a user in Slack with username foo and email bar@example.com

Expected behavior

The slack-imported user gets a custom prefix/suffix to distinguish from SSO users, e.g. foo_slack

Observed behavior (that appears unintentional)

Assuming foo from SSO never logged in, a new user foo is created with foo@example.com during the Slack import.
Now if foo logs in via SSO, he gets a username different from the SSO-provided username (iirc. foo0).

Possible fixes

  • Easy workaround: Add an option to restrict Slack import to System Admins (that way the impact is greatly reduced since not every team admin can do an import that creates conflicting users)
  • Clean solution: Add an option to provide a prefix/suffix for users created during Slack import
  • (EE+LDAP) Match emails and update usernames from Slack with the matching usernames from SSO (prefix/suffix if no match) during import.

Related thread: https://community.mattermost.com/core/pl/3nmcmx3jz3815mff1fcnbi7u9e

@amyblais
Copy link
Member

Thank you @ThiefMaster, opened a bug ticket here: https://mattermost.atlassian.net/browse/MM-15748.

@amyblais amyblais added the Bug Report/Open Bug report/issue label May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report/Open Bug report/issue
Projects
None yet
Development

No branches or pull requests

2 participants