Skip to content

Users ​

How to add a user and give them a role ​

Nobody can sign in to a new deployment until someone holds the Vibedata Owner role, and that first owner has to be created before anyone has a session. There is no separate command for it — the first owner is the first user you give that role to:

bash
vibedata user add --email ada@example.com --role vibedata_owner

Before you can sign in, sign in with the deployment's bootstrap key: run vibedata login --studio-url https://studio.example.com, and enter the key on the page that opens. Afterwards, your normal sign-in works and the command is the same. The credential you already hold is what decides; you do not tell user add which one you used.

The email address must be the one your identity provider will issue for that person. Vibedata links an account to a provider identity the first time they sign in, so a different spelling creates a second, unlinked account instead of giving them access. The command reminds you of this every time.

To give someone a role in one Domain rather than across the whole deployment, name the Domain by its identifier — the one vibedata domain create printed, or the one in a Domain's URL in Vibedata:

bash
vibedata user add --email ada@example.com --role domain_owner --domain d-7f3a

If the person already holds a role you did not name, the command stops and tells you, instead of taking it away. Vibedata stores the roles for a scope as a set, so naming one role would otherwise remove the others. List every role they should hold to go ahead, or add --replace-roles if you mean to replace the set with what you named.

Repeat --role to list every role the person should hold. Vibedata checks the names, so a role it does not recognise comes back with the ones it does accept. If a role needs a Domain and you have not named one, the command says so.

The command finds the person by asking Vibedata about their email address, so it works the same whether the deployment has ten users or ten thousand. Against an older Vibedata that cannot answer for one address, it falls back to reading the user list, which Vibedata caps. If that list ends before it reaches the address, the command stops without changing anything — it cannot see what the person already holds, so it cannot promise not to remove it. The message says so, and names the two ways forward: upgrade Vibedata, or add --replace-roles if you mean to set the roles regardless.

Adding someone who already has an account updates their roles rather than creating a second account, and the command tells you that is what happened. Running the same command twice is safe either way.

Running it again is not the same as doing it again, though. Vibedata remembers an identical command for a day and answers the repeat from what it recorded the first time, so if someone removed the role in between, running the same command will not put it back. The command checks what the person actually holds afterwards and tells you — and stops with an error — if it is not what you asked for. Change something about the command, or grant the role in Vibedata.

User management needs an identity provider, so this command does not apply to a local Docker installation, where you are the only user and already a Vibedata Owner. Removing a role, offboarding someone, and editing a profile are done in Vibedata itself.

Command reference ​

vibedata user add ​

Add a user and give them a platform or Domain-scoped role.

bash
vibedata user add [OPTIONS]
OptionDefaultWhat it does
--email TEXTrequiredEmail address of the user to add.
--role TEXT, repeatablerequiredRole to grant. Name every role the user should hold at the scope: Vibedata sets the roles for a scope rather than adding to them.
--replace-rolesoffSet the roles for the scope to exactly the ones named, even when Vibedata could not say what the user holds there. A role the command does not name is removed.
--domain TEXT—Domain id to scope the roles to. domain create reports the id it created.
--studio-url TEXT—Vibedata URL to target. Defaults to the local installation.