Can we rename a user?
I have created a user nut made a typo. How can I rename that user?
23 Replies
Where did you make the typo? User email?
I don't believe there is currently any supported way to rename a user.
username email is corrrect
I can not create a new user wit the same email.
Yeah, the problem with username is that we name workspace resources with the username 😦
anyway to chnage email?
I can change the email and then create a new one with the current email
I don't think there's any way to change the email right now besides updating the database directly.
Actually, can you log in as the user and click on their username icon on the top right?
Then select Account -> there should be a Username field that is editable
you can also do via CLI:
user_id is the UUID of the user
I will try that
There is also a trick with email addresses where you add a
+identifier
e.g. [email protected]
-- that will map to the same email address. I use it a lot when signing up for different websites so that I know who is selling my email address 🙂
So you could create another user account with a +identifier and that would still be the same underlying email.Created ticket: https://github.com/coder/coder/issues/3642
GitHub
No way to update a user email · Issue #3642 · coder/coder
Problem: Given: a Coder admin creates a user manually with an incorrect email, or needs to update the email address of an existing user When: the admin attempts to update the user email Then: it is...
it is editbale but it says resource not found in red. It does not let me save the new name
OK, is your user an administrator?
no
the user I want to chnage is not an admin
then you're probably hitting this other issue https://github.com/coder/coder/issues/3286
GitHub
Member user cannot update their username · Issue #3286 · coder/coder
Problem statement When a member user tries to update their username, they are thrown an error as seen in the following screenshot: Proposal Either we should allow members to update their own userna...
My user is an owner aftre 0.8.6 update
owner == admin
Try and see if the CLI method works with your own user, it should have access
what is
user_id
n CLI?It's the UUID. If you hit https://my.coder.instance/api/v2/users you should see a list of all the users
you can then figure out the UUID of the user you want to change.
somehow CLI was not accepting the token as
~/.config/coderv2/
does not have any file named token
Are you on Windows?
I chnaged the role of the user to
useradmin
then renamed the username and then changed back the role again.
It workedThat's a better workaround 🙂
No. I am on Ubuntu
The codercod bot seems down
Thank you @Cian for your time and support.
The codercod bot seems down? Ah, @Codercord
oh, that's weird