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 لقد ذكرت أنه في وقت هذا المنشور، عام 2015، لم تكن هناك طريقة لمزامنة اسم المستخدم مرة أخرى مع Wordpress.
أعجبني أن يكون لدي WP كمصدر للحقيقة. لكنني أود السماح للمستخدمين بتغيير اسم مستخدمهم هنا في Discourse ومزامنته مرة أخرى مع WP كمزود SSO. (أحيانًا يكون بادئة البريد الإلكتروني، وهي الافتراضية لاسم المستخدم، ليست ما يريده الناس كاسم مستخدم).
لا يزال هذا ليس هو كيفية عمل الأمر. التزامن أحادي الاتجاه من ووردبريس إلى ديسكورد باستخدام هذه الإضافة. مع تفعيل SSO، فإن أفضل خيار هو تغيير اسم المستخدم في ووردبريس ثم مزامنة التغيير مع ديسكورد. في مجتمعي، تُعد هذه مهمة إدارية، جزئيًا لأن هناك حالات تتطلب تحديثًا جماعيًا لذكر اسم المستخدم القديم. يمكن للمستخدمين طلب تغيير اسم المستخدم من المسؤولين.
@tobiaseigen شكرًا جزيلاً لك على تخصيص الوقت لصياغة هذه الإجابة.
من المفيد معرفة أنك تواجه نفس التحدي، وكيفية تعاملك معه بالضبط. كنت أفكر أن هذا قد يكون ما يتعين علينا فعله، وأنا أشعر بالاطمئنان لمعرفتي أن هذا هو النهج الذي يتبعه آخرون من مستخدمي ديسكورش المخضرمين في التعامل مع هذه القضية.