# Linking SAML account to Username/password account?

**URL:** https://meta.discourse.org/t/linking-saml-account-to-username-password-account/127119
**Category:** Support
**Created:** [29 באוגוסט,‏ 2019,‏ 1:13pm UTC](https://meta.discourse.org/t/linking-saml-account-to-username-password-account/127119 "2019-08-29T13:13:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Jim.Morrison](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jim.morrison/32/162161_2.png) [@Jim.Morrison](https://meta.discourse.org/u/Jim.Morrison)
#### Post date: [29 באוגוסט,‏ 2019,‏ 1:13pm UTC](https://meta.discourse.org/t/linking-saml-account-to-username-password-account/127119/1 "2019-08-29T13:13:14Z")

</div>

Hello everyone, we have a user who previously logged into our discourse instance with a username/password login. They recently switched to AzureAD SSO login and after this, they are unable to login to Discourse. We feel this is probably because it doesn’t recognize the new user\_id.

When referencing their email I don’t see multiple instances of their login.

Is there a way to link their new SAML user account with original username/password account so they can login?

We are leveraging [GitHub - discourse/discourse-oauth2-basic: A basic OAuth2 plugin for use with Discourse · GitHub](https://github.com/discourse/discourse-oauth2-basic)

---

<div class="post-metadata">

### Author: ![Jim.Morrison](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jim.morrison/32/162161_2.png) [@Jim.Morrison](https://meta.discourse.org/u/Jim.Morrison)
#### Post date: [3 בספטמבר,‏ 2019,‏ 9:52pm UTC](https://meta.discourse.org/t/linking-saml-account-to-username-password-account/127119/2 "2019-09-03T21:52:29Z")

</div>

Following up on feedback for this. Thanks!

---

<div class="post-metadata">

### Author: ![Jim.Morrison](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jim.morrison/32/162161_2.png) [@Jim.Morrison](https://meta.discourse.org/u/Jim.Morrison)
#### Post date: [5 בספטמבר,‏ 2019,‏ 2:46pm UTC](https://meta.discourse.org/t/linking-saml-account-to-username-password-account/127119/3 "2019-09-05T14:46:52Z")

</div>

We have now proceeded forward with deleting the account and letting the user recreate their account. We will see if this resolves the issue but is far from the ideal solution…

---

<div class="post-metadata">

### Author: ![Jim.Morrison](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jim.morrison/32/162161_2.png) [@Jim.Morrison](https://meta.discourse.org/u/Jim.Morrison)
#### Post date: [6 בספטמבר,‏ 2019,‏ 1:49pm UTC](https://meta.discourse.org/t/linking-saml-account-to-username-password-account/127119/4 "2019-09-06T13:49:27Z")

</div>

After deleting the account the customer was successfully able to login once they created a new account.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [6 באוקטובר,‏ 2019,‏ 1:49pm UTC](https://meta.discourse.org/t/linking-saml-account-to-username-password-account/127119/5 "2019-10-06T13:49:33Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
