How to change the login of a user?

Hi,

I have version 2.5.x

Is it possible to change the login of a user?

I don’t know why, but some of my users got automatically a login like ‘auto-1529528224-994762’

Thanks,
Christian.

this are users without an email adress in my system

yes that’s true. but i added the missing information for the users, and some have now the email address, but i have still a couple left witht the auto-* insted of the email address.

is there a way to change them?

You should be able to do that via rails.

Startup your rails console
zammad run rails c

Update the login
User.find_by(login: 'CURRENTLOGIN').update_attributes(:login => 'NEWLOGIN')

or something like that.

cheers

Hi svnr-dvnkln,

sorry for the late answer. Worked perfect.

Thank you,
Christian.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.