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.

1 me gusta

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.

2 Me gusta

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

6 Me gusta

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

2 Me gusta

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

Thanks for your help!

3 Me gusta

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.

5 Me gusta

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?

1 me gusta

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

1 me gusta

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.

3 Me gusta

Thanks. That makes sense.

1 me gusta

¡Tengo exactamente la misma pregunta!

@riking mencionaste que, en el momento de esta publicación, en 2015, no había forma de sincronizar un nombre de usuario de nuevo con WordPress.

Me gusta tener mi WP como la fuente de verdad. Pero sí quiero permitir que los usuarios cambien su nombre de usuario aquí en Discourse y lo sincronicen de nuevo con WP como proveedor de SSO. (a veces el prefijo de su correo electrónico, que es el predeterminado para el nombre de usuario, no es lo que las personas desean como su nombre de usuario).

Esto todavía no es así como funciona. La sincronización con este plugin es unidireccional, de WordPress a Discourse. Con el SSO configurado, lo mejor es cambiar el nombre de usuario en WordPress y permitir que el cambio se sincronice en Discourse. En mi comunidad, esta es una tarea de administrador, en parte porque en algunos casos es necesario actualizar en masa las menciones del nombre de usuario antiguo. Los usuarios pueden solicitar a los administradores que cambien su nombre de usuario.

5 Me gusta

@tobiaseigen Muchas gracias por tomarte el tiempo de redactar esta respuesta.

Es útil saber que estás en la misma situación y conocer exactamente cómo lo estás manejando. Pensaba que esto podría ser lo que tenemos que hacer, y me da confianza saber que así es como otros usuarios experimentados de Discourse están resolviendo este problema.

1 me gusta