SSO with Wordpress but users cannot change their username

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.

Fairly certain this is because you are using SSO and since you tied it to your wordpress database, that is where the change would have to take place.

What @cpradio said and also I’m guessing you might have the sso overrides username setting enabled.

Yep, if you turn that off people should be able to change their username again.

Thanks all! I unchecked the sso overrides username and viola it worked!

Thanks for your help!

Would this break the sso with workdpress if people are chaging their
username on Discourse? WP does not allow the changing of usernames.

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.

Great. Thanks.

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?

Is there a way to allow a user to change usernames in Discourse and sync it back to WP?

Not right now, no. The whole design of SSO is around the remote being the source of truth about identity.

Changing the username will not break SSO.

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.

Thanks. That makes sense.

Je me pose exactement la même question !

@riking, vous avez mentionné qu’au moment de ce message, en 2015, il n’existait aucun moyen de synchroniser un nom d’utilisateur vers WordPress.

J’apprécie d’avoir WP comme source de vérité. Cependant, je souhaite permettre aux utilisateurs de modifier leur nom d’utilisateur ici, dans Discourse, et de le synchroniser avec WP en tant que fournisseur SSO. (Parfois, le préfixe de leur adresse e-mail, qui est le nom d’utilisateur par défaut, ne correspond pas à ce que les gens souhaitent comme nom d’utilisateur).

Ce n’est toujours pas ainsi que cela fonctionne. Avec ce plugin, la synchronisation s’effectue dans un seul sens : de WordPress vers Discourse. Une fois le SSO configuré, la meilleure approche consiste à modifier le nom d’utilisateur dans WordPress, ce qui se synchronisera ensuite vers Discourse. Dans ma communauté, il s’agit d’une tâche d’administration, en partie parce que, dans certains cas, il est nécessaire de mettre à jour en masse les mentions de l’ancien nom d’utilisateur. Les utilisateurs peuvent demander aux administrateurs de modifier leur nom d’utilisateur.

@tobiaseigen Merci beaucoup d’avoir pris le temps de formuler cette réponse.

C’est utile de savoir que vous êtes dans la même situation et de comprendre exactement comment vous gérez la chose. Je pensais que c’était peut-être ce que nous devions faire, et cela me rassure de savoir que c’est ainsi que d’autres utilisateurs expérimentés de Discourse gèrent ce problème.