I have the SSO for Wordpress installed configured and working,… users are able to signup/login as expected.
However users cannot change their username.
I’ve set the username change period to 90 days but that still doesn’t allow users to change their name (within 90 days of creating the account, users still cannot change their username)
Here’s the user’s screenshot showing the lack of an edit pencil next to their username.
There are some WP plugins that let you change usernames. I use this one:
If you have sso overrides username enabled then the next time the users logs in their username will update in Discourse. If you have it disabled, then I think if you just change their username in Discourse to match all should be fine.
When changing the username do i change in discourse as well or will SSO update it for me? I am assuming i need to update Discourse as well through admin so it does not create a new account correct?
SSO is never tied to the username, but to the external id and E-Mail address. If the external ID is not known to Discourse, it associates it with the account having the same E-Mail address (or creates a new one). Afterwards, any changes to the account won’t affect this invisible link, Discourse will always recognize the account by its ID.
@riking hai menzionato che al momento di questo post, nel 2015, non esisteva un modo per sincronizzare il nome utente con Wordpress.
Preferisco avere WP come fonte di verità. Tuttavia, vorrei permettere agli utenti di modificare il proprio nome utente qui su Discourse e sincronizzarlo con WP come provider SSO. (a volte il prefisso dell’email, che è il valore predefinito per il nome utente, non è ciò che gli utenti desiderano come nome utente).
Non è ancora così che funziona. Con questo plugin, la sincronizzazione è unidirezionale: da WordPress a Discourse. Con l’SSO attivo, la cosa migliore è modificare il nome utente in WordPress e far sì che la modifica venga sincronizzata su Discourse. Nella mia community, questa è un’attività amministrativa, anche perché in alcuni casi è necessario aggiornare in blocco i riferimenti al vecchio nome utente. Gli utenti possono chiedere agli amministratori di modificare il proprio nome utente.
@tobiaseigen Grazie mille per aver dedicato il tuo tempo a formulare questa risposta.
È utile sapere che ti trovi nella stessa situazione e conoscere esattamente come la stai gestendo. Pensavo che questa potesse essere la strada da seguire, e mi dà fiducia sapere che è così che altri esperti di Discourse stanno affrontando questo problema.