# Nextcloud SSO username

**URL:** https://meta.discourse.org/t/nextcloud-sso-username/105990
**Category:** Support
**Created:** [January 8, 2019, 5:49pm UTC](https://meta.discourse.org/t/nextcloud-sso-username/105990 "2019-01-08T17:49:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![switch2mac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/switch2mac/32/122563_2.png) [@switch2mac](https://meta.discourse.org/u/switch2mac)
#### Post date: [January 8, 2019, 5:49pm UTC](https://meta.discourse.org/t/nextcloud-sso-username/105990/1 "2019-01-08T17:49:50Z")

</div>

I’ve managed the SSO configuration against an nextcloud server.  
It works pretty well, with one problem.  
If an user is unknown to discourse and login the first time a user is created at discourse with an username from nextcloud.  
Unfortunately the nextcloud user management is LDAP based and the username field in nextcloud is an UUID String.  
Is it possible to change the username to something other e.g. email address?

Thanks LL&P  
David

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 8, 2019, 6:03pm UTC](https://meta.discourse.org/t/nextcloud-sso-username/105990/4 "2019-01-08T18:03:31Z")

</div>

What exactly are you using in the Discourse side? Our SSO protocol or a plugin for an authentication strategy like oauth2?

---

<div class="post-metadata">

### Author: ![switch2mac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/switch2mac/32/122563_2.png) [@switch2mac](https://meta.discourse.org/u/switch2mac)
#### Post date: [January 8, 2019, 6:08pm UTC](https://meta.discourse.org/t/nextcloud-sso-username/105990/5 "2019-01-08T18:08:31Z")

</div>

Standard SSO protocol out of the box and [Discourse SSO - Apps - App Store - Nextcloud](https://apps.nextcloud.com/apps/discoursesso) on nextcloud.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 8, 2019, 6:17pm UTC](https://meta.discourse.org/t/nextcloud-sso-username/105990/6 "2019-01-08T18:17:25Z")

</div>

So that is a feature request for that NextCloud plugin.

It sets the username here:

> <https://github.com/habi-dat/discoursesso/blob/main/lib/Controller/DiscourseController.php#L92>

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 8, 2019, 8:00pm UTC](https://meta.discourse.org/t/nextcloud-sso-username/105990/7 "2019-01-08T20:00:27Z")

</div>

This topic was automatically closed after 103 minutes. New replies are no longer allowed.
