Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Support for Initial User Creation

Open leefaus opened this issue 10 years ago • 6 comments

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.

leefaus avatar Feb 15 '16 21:02 leefaus

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.

Sing-Li avatar Feb 15 '16 22:02 Sing-Li

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

sampaiodiego avatar Feb 15 '16 22:02 sampaiodiego

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

engelgabriel avatar Feb 16 '16 00:02 engelgabriel

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

RichardFoxworthy avatar Feb 16 '16 01:02 RichardFoxworthy

@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?

engelgabriel avatar Feb 16 '16 01:02 engelgabriel

@engelgabriel see #2232

RichardFoxworthy avatar Feb 16 '16 02:02 RichardFoxworthy