Unofrtunately, I don’t know enough ruby to add a PR myself and I have been looking through the api code to see if I could find anything.
I need to be able to change the user locale based on the locale in my main site. so as far as I can see this is the process that needs to happen.
User changes locale on the main site:
####option 1: Send an API request (if the API is capable) to change the user in discourse. I don’t think the API can do that but I might be mistaken.
####option 2: Run an sso_sync and send the data to the discourse, but unfortunately I do not know the whole user data structure and I don’t know how discourse interprets what it receives. I have tried adding
"locale": "en" to my payload that gets urlencoded in python but that does not work.
Any ideas on how to do this?
on a side note
Shouldn’t there be an api endpoint that would let admins change whatever they want in the users from the API? basically be able to GET and see the whole user data structure and then PUT or DELETE to modify it? I wish I could code this up myself and submit a PR but it will be a while before I can learn enough ruby in practice to make it happen