# Has anyone succeeded in using discourse as sso provider for nextcloud? Share recipe?

**URL:** <https://meta.discourse.org/t/has-anyone-succeeded-in-using-discourse-as-sso-provider-for-nextcloud-share-recipe/59430>\
**Category:** Product Support\
**Created:** [March 18, 2017, 5:59pm UTC](https://meta.discourse.org/t/has-anyone-succeeded-in-using-discourse-as-sso-provider-for-nextcloud-share-recipe/59430 "2017-03-18T17:59:03Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![paroga](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paroga/32/120571_2.png) [@paroga](https://meta.discourse.org/u/paroga)\
**Post date:** [January 10, 2022, 2:14am UTC](https://meta.discourse.org/t/has-anyone-succeeded-in-using-discourse-as-sso-provider-for-nextcloud-share-recipe/59430/12 "2022-01-10T02:14:36Z")

</div>

I’m not sure if I understand your current problem correctly, but I assume that your problem are the existing users, which have no “connected social login account”. When all users are connected everything would be fine?

As you wrote already yourself, the email is not unique in Nextcloud and therefore can not used safely for user mapping.

When I switched to the `sociallogin` app, I conencted the existing users with a simple SQL query. I exported the Discourse user list and inserted a mapping for the `[internal name]-[userid]` (e.g. `kb2-3797`) to the existing Nextcloud usernames into the `sociallogin_connect` table in the nextcloud database. What fields you use for mapping (e.g. username or email) depends on your setup.

> [@tobiaseigen](#):
>
> I’m not 100% clear on what you mean by device passwords

The screenshot seams a little bit outdated, but I have a very similar table (including the “button to create a new device-specific password”) when I open `/settings/user/security` on my Nextcloud 23.0 stable instance. Can you post a screenshot of your page?

---

_[View the full topic](https://meta.discourse.org/t/has-anyone-succeeded-in-using-discourse-as-sso-provider-for-nextcloud-share-recipe/59430)._
