Create the first owner
Make the first organization and its owner on a new install with wardn admin create, and hand the owner a one-time link to set a password.
A new install admits people only by invitation (see Sign-up modes), and an invitation comes from an Owner, so the first Owner has to be made another way. wardn admin create makes the first organization and its Owner from the server itself, and prints a link where the Owner sets a password. After that the Owner invites everyone else from Access › Members, or sets up single sign-on.
Run it once, on a new install, after the control plane is ready. You need access to the server's environment: a shell in the server container, or the same environment variables as the server.
What it does
In one step, wardn admin create:
- Creates the organization.
- Creates the account for the owner, with the email you give.
- Makes that person the organization's Owner.
- Records the creation in Activity.
- Prints a setup link, valid for 24 hours, where the Owner chooses a password.
It refuses when the email already has an account, so it cannot be used to take over someone's sign-in. Nothing is changed if it refuses.
Run it
| Flag | Meaning |
|---|---|
--email | The owner's email address. Required. |
--org | The organization's name. Optional. Without it, the name comes from the domain of the email, so [email protected] makes Acme. |
Run it in the server pod. The charts do not set WARDN_PUBLIC_URL on the server, so pass it to get an absolute link:
kubectl -n wardn exec deploy/wardn-wardn-standard-server -- \
env WARDN_PUBLIC_URL=https://wardn.example.com \
wardn admin create --email [email protected] --org "Acme"For wardn-tiny the deployment is wardn-wardn-tiny-server. For wardn-scale, use the api deployment, wardn-wardn-scale-api.
It prints:
Created "Acme" with [email protected] as its owner.
Set a password within 24 hours at:
https://wardn.example.com/reset-password?setup=1&token=...
Anyone with this link can take the account, so send it only to the owner.If WARDN_PUBLIC_URL is not set, the link is relative (it starts with /reset-password): add the address people open in front of it.
Anyone who has the link can set the password and become the Owner, until it is used or 24 hours pass. Send it to the owner over a channel only they can read, and do not paste it into a ticket or a shared channel.
The owner sets a password
The owner opens the link, which opens a page to set a password.
They choose a password and submit. They can then sign in as Owner of the new organization.
Running the command again for the same email is refused, because the account now exists. If the link expires before it is used, the owner can choose Forgot your password? on the sign-in page, which sends a reset link by email when the install has email set up.
After the first owner
| Next | Where |
|---|---|
| Invite people | Access › Members, then Invite. See Members and teams. |
| Let people sign in with the company provider | Settings › Single sign-on. See Single sign-on. |
| Let one more organization exist | Run the command again with another --email, or list a platform admin in WARDN_PLATFORM_ADMINS. |
| Open sign-up | WARDN_SIGNUP=open. See Sign-up modes. |