Is it possible to generate random password and send it to user’s email while creating new user with mmctl CLI
@ahmaddanial would you be able to provide further insight into this one? I’m not sure that I know enough about mmctl to respond with certainty to this question
Hi, @hkpanchani
As of now, the password generation is to be done manually through the following command:
user create --email user@example.com --username userexample --password Password1
No random password generation available for this feature yet. I went ahead and created the following topic in Mattermost Uservoice so we can keep track of this publicly.
Hope that helps.
I’m fairly new here myself, but from what I’ve gathered, integrating a strong password checker is crucial for user account security, especially in CLI-driven setups. It adds that extra layer of assurance against potential breaches.
I thought I’d jump in. I think generating a random password and emailing it to the user through mmctl sounds like a great idea, especially if there’s a strong password checker involved. It’s super important to make sure the generated password is strong enough to keep accounts secure. I’ve been using a password strength checker in some of my projects, and it really helps catch any weak spots before they become an issue. Totally on board with anything that makes life easier and more secure for users.
I’d solve this with your shell, and not expect mmctl to add functionality that would basically duplicate existing capabilities. Wouldn’t be too hard to write a script that would generate the password, feed it to mmctl, and email the result to the user (but keep in mind standard SMTP is insecure, and you’re potentially exposing that password to any number of mail servers in between the sender and recipient.