Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Initial User Creation #2231

Closed
leefaus opened this issue Feb 15, 2016 · 6 comments
Closed

Support for Initial User Creation #2231

leefaus opened this issue Feb 15, 2016 · 6 comments

Comments

@leefaus
Copy link

leefaus commented Feb 15, 2016

Many people want to automate the creation of their RC server deployments, just like we do. We should pass in an option on initial setup to allow for an admin/password to be created as part of that process. Maybe even passing in a csv file with login/password combinations to set them up through the API. This is primarily for completely automated setups.

@Sing-Li
Copy link
Member

Sing-Li commented Feb 15, 2016

Agreed.

At least for two users:

*admin
*bot

And ideally done ONLY with initial DB setup (if DB exists, no go) - so there is zero security risk.

@sampaiodiego
Copy link
Member

I just found this this.
you can create the admin user by environment variables.

@engelgabriel
Copy link
Member

@sampaiodiego, please add the options to pass also the Full Name and Username of the initial admin.

@engelgabriel engelgabriel added this to the 0.19.0 milestone Feb 16, 2016
@RichardFoxworthy
Copy link

Is there any ability to automate creation of multiple user accounts on spin-up of a new Rocket.Chat instance?

We'd like to automate all of the following:

  • create new Rocket.Chat instances
  • populate the instance with a set of standard public and private rooms (really need some public rooms to be announcement only)
  • populate instance with a set of user accounts, wth ability to pre-configure permissions for appropriate per-account access to public and private rooms
  • populate the instance with some templated customised content for Home page

@engelgabriel
Copy link
Member

@RichardFoxworthy can you detail what you'd need on another issue?
Maybe have the ability to pass a JSON with some bootstrap data via environment variables?
Maybe a JSON with a sequence of methods to call on first startup with respective arguments?

@RichardFoxworthy
Copy link

@engelgabriel see #2232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants