Docs menu

Set up Accounts and access

Accounts and access

Each person signs in to the dashboard with an account. An account reaches only the organizations it is a member of, and its role in each one decides what it can do there. The API token is for machines, and no sign-in accepts it.

Sign in

There are three ways to sign in:

  • Sign in with a password. A password has 12 to 256 characters.
  • Sign in with Google, when the operator sets the FACTORIAL_AUTH__GOOGLE_* values.
  • Sign in with the name of your identity provider, when the operator sets the FACTORIAL_AUTH__OIDC_* values.

A session lasts seven days. Ten wrong passwords in a row lock the account for 15 minutes, and the page says that there were too many failed sign-ins. To leave, open the Account menu and choose Sign out.

When the sign-in page says That account can't sign in here, the deployment does not admit that address. Ask an owner for an invite, or sign in with your work account.

Who gets an account

The operator sets FACTORIAL_MULTI_ORG__ENABLED in the .env file. The setting decides who can make an account and who can make organizations. Membership decides what each account reaches, whatever the setting is.

Off (the default): one organizationOn: many organizations
Organizationsdefault only. Nobody makes another.Any account can make one, and becomes its owner.
Who can make an accountThe first account on an empty factory, a person with an invite link, or a Google or OIDC sign-in from a domain in FACTORIAL_AUTH__ALLOWED_DOMAINSAnyone
A sign-in from an allowed domainJoins default as a memberJoins nothing. FACTORIAL_AUTH__ALLOWED_DOMAINS has no effect.
How to join an organizationBy invite, or from an allowed domainBy invite only

With the setting off, a person who signs up with a password must start from the invite link. The address alone is not enough, so a person who only knows the address cannot take the account first.

You can turn the setting off again. Then nobody can make an account or an organization, and members keep their organizations.

Give Factorial its first owner

On an empty factory, the first account that someone makes owns default. An empty factory has nothing that an operator made: no member, invite, project, runtime, secret, organization credential or MCP token. Make your account before you do anything else.

When FACTORIAL_AUTH__BOOTSTRAP_TOKEN has a value, only an account that gives that value at sign-up becomes the owner. Then the factory is empty until default has an owner, whatever other people made before. Until then, nobody can make an organization.

An install that already has data never does this, so a stranger who reaches the sign-in page first gets nothing. Give it an owner with a command where the database is reachable. In the container of Run Factorial:

docker exec factorial sh -c 'cd /app && HOME=/tmp /command/s6-setuidgid factorial \
  .venv/bin/python -m orchestrator.admin grant-owner you@example.com'

When the address has an account, it becomes the owner at once. When it has no account, the command prints an invite link. Open the link and make the account from it. Until default has an owner, nobody can invite people, change roles, or manage projects and runtimes.

Roles

Each organization has three roles. The Members page shows them under What each role can do.

PermissionWhat it allowsOwnerAdminMember
org:readSee the organization, its projects, tickets, runs, costs and factory boardYesYesYes
tickets:operateInterrupt, resume, restart, requeue, exit and create ticketsYesYesYes
assistant:useChat with the assistantYesYesYes
mcp_tokens:mintMake MCP tokens, and see and revoke your ownYesYesYes
tickets:terminalOpen the terminal of a run, which shows the secrets of its sessionYesYesYes
projects:readRead the configuration of a project: its settings, secret names, readiness, processes, agents and promptsYesYesYes
projects:manageMake and configure projects, with their secrets and configYesYesNo
runtimes:manageMake runtimes and set their vendor credentialsYesYesNo
assistant:configureSet the settings, credential and daily budget of the assistantYesYesNo
mcp_tokens:manageSee and revoke the MCP token of any personYesYesNo
members:inviteInvite people and revoke invitesYesYesNo
members:removeRemove a memberYesYesNo
org:manageRename the organization and change its settingsYesYesNo
members:assign_rolesChange the role of a memberYesNoNo

Some rules apply to every role:

  • You can give a role only if it holds nothing that your own role does not hold.
  • You can remove only members whose role holds less than yours.
  • Nobody can remove the last owner, and the last owner cannot leave or step down.
  • A person who is not a member of an organization sees Organization not found, as for an organization that does not exist. Its name tells a stranger nothing.
  • A role never approves a merge. A gate counts only GitHub reviews (Tickets and gates).

Invite a person

  1. Open Members and push Invite people.
  2. Write the Email of the person and choose the Role.
  3. Push Create invite link. The dashboard shows the link one time only. Factorial sends no email, so send the link to the person yourself.

The person opens the link, signs in or makes an account with that address, and pushes Accept invite. Only an account with the address of the invite can accept it, so a forwarded link is of no use to anyone else. A link works one time, for seven days.

The Pending invites tab lists the invites that nobody accepted yet. New link makes a new link for the same address and role and stops the old link. Revoke stops the link.

Remove a person

Open Members and push Remove on the row of the person. To leave an organization yourself, push Leave on your own row.

A removal takes effect at once:

  • The dashboard shows the organization to that person no more.
  • Their MCP tokens fail at the next call.
  • A terminal that they have open closes within a few seconds.
  • A page link that they hold reads nothing.

A removed person joins again only with a new invite. A sign-in from an allowed domain does not add them back.

Do not remove a domain from FACTORIAL_AUTH__ALLOWED_DOMAINS to stop a person. The list only lets new people in. A member from that domain continues to sign in, and their MCP tokens continue to work.

An address that someone registered first

A password does not prove that a person owns the address. A Google or OIDC sign-in does. The Members page marks an account that only a password made as unverified.

When a person signs in with Google or OIDC to an unverified account, Factorial removes its password and ends every session from before. The person who set the password may not own the address. A person who made an account with a password and later uses Sign in with Google signs in again one time on their other browsers.

The API token

FACTORIAL_API_TOKEN is for scripts, the assistant, and the API calls of the operator. It holds every permission in every organization, and no sign-in accepts it. Factorial records its actions as api-token, because a token does not name a person.

The token is also the key of every session, MCP token, terminal ticket and page link. When you change it, every browser signs out, and every MCP token stops working.