Skip to Content
Deploy & ConfigureUser Management

User Management

This page covers everything an admin does to let real humans — and headless scripts — authenticate against their Harnesst deployment.

The first admin

The first account created on a fresh install automatically becomes the workspace admin. After that, new signups require an invite (or Google OAuth if configured).

To create the first admin:

  1. Deploy the stack
  2. Open the public URL (FRONTEND_URL)
  3. Sign up with email and password
  4. You’re the admin

Sign-in page

Workspace roles

Every user has one of three workspace-level roles:

RoleCan create agents, skills, triggersCan see unshared agentsCan manage MCP servers, sandboxes, models, users, tokens
adminyesyes (all agents)yes
editoryesonly own + sharedno
membernoonly sharedno

These are the global workspace permissions. Per-agent permissions layer on top — see Agent Permissions.

The Users page

Users in the left navigation is where admins manage people and teams.

Users page

Inviting users

  1. Click Invite user
  2. Enter the email address and pick a role (admin, editor, or member)
  3. Harnesst returns a one-time invite URL (<FRONTEND_URL>/invite/<token>) — share it with the person you’re inviting

The invitee opens the URL, signs up (or signs in with Google), and lands in the workspace with the role you selected. Pending invites are listed on the page and can be revoked.

Teams

Click New team to create a team, then assign users to it from their row. A user belongs to at most one team. Teams exist to share agents: binding a team to an agent in its Permissions tab gives every member member access. See Agent Permissions.

Managing existing users

From the same page, admins can:

  • Change a user’s role (member ↔ editor ↔ admin)
  • Move a user to another team, or to no team
  • Remove a user from the workspace

Google OAuth

To let users sign in with their Google accounts, open Settings → Authentication as a workspace admin. Enter the OAuth client ID and secret, then enable Google. The credentials are encrypted before they are stored.

You can also enable Google-only authentication to disable password sign-in and password-based invite acceptance.

Create the OAuth client in the Google Cloud Console:

  1. APIs & Services → Credentials → Create Credentials → OAuth client ID
  2. Application type: Web application
  3. Authorized redirect URI: copy the exact value shown in Settings → Authentication
  4. Copy the Client ID and Secret into the same Settings form

Users still need an invite (unless they’re the first account). Google OAuth only changes how they authenticate, not whether they’re allowed in.

Profile and two-factor authentication

Every user can open Settings → Profile to update their first name, last name, password, and profile photo. Uploaded photos are cropped to a 512×512 WebP image and stored in PostgreSQL.

The same page lets users enable TOTP two-factor authentication with any compatible authenticator app. Setup displays a QR code and a manual secret, then requires a valid six-digit code before 2FA is enabled. Ten single-use backup codes are shown once; users can regenerate them or disable 2FA after confirming their password and a TOTP or backup code.

Once enabled, 2FA is required after both password and Google OAuth sign-in.

Personal access tokens (PATs)

For headless usage — scripts, CI, n8n, Cloud Scheduler — workspace admins can mint personal access tokens from Profile → Access tokens.

Profile, access tokens

  • PATs authenticate API calls as the creating admin (with that user’s role and agent permissions)
  • They are hashed at rest in the database
  • The raw token is shown once at creation time — copy it immediately
  • Tokens can be revoked any time from the same screen

Use a PAT in the Authorization header:

curl -H "Authorization: Bearer <PAT>" \ https://your-host/api/backend/agents/

For tutorials on using PATs to trigger agents from external systems, see Tutorials. For recurring runs you don’t need a PAT at all — a trigger schedules the agent from inside Harnesst.

Last updated on