Skip to content

Users and roles

Manage the people in a workspace under Manage > Users, and what they can do under Manage > Roles. Access is per workspace: someone who belongs to two workspaces can have a different role in each.

Inviting, changing roles, deactivating, removing and resetting passwords require the workspace admin role. A custom role that includes users.manage can edit roles, but it can’t manage members.

There is no self-service sign-up. People join a workspace by invitation, or through single sign-on.

  1. Open Users and select Invite User.
  2. Enter their Email and Name, and pick a Role.
  3. Leave Send invitation email (if configured) ticked to email the link, and select Send Invite.
  4. The dialog says Invitation email queued and shows the link. The email goes out within a few minutes. You can also select Copy Link and share the link yourself.
  5. If your VirtuAI instance isn’t set up to send email, the dialog says Email not sent. Copy the link and share it manually. instead. Select Copy Link and send it yourself.

The person opens the link, enters their full name and a password of at least 8 characters, and selects Accept Invitation.

Inviting someone who already has an account

Section titled “Inviting someone who already has an account”

If the email already belongs to a VirtuAI account, for example someone from another workspace, the invitation adds the workspace to that account and nothing else: their password, name and sign-in method stay as they are.

  • The dialog shows no link. It says the person already has a VirtuAI account and will see the invitation when they sign in.
  • When they sign in, a banner at the top of the console says You have been invited to join the workspace, with an Accept button. Once they accept, they switch to it from the workspace menu.
  • If email is set up, they also get an email asking them to sign in and accept. Its link works only while they’re signed in to that account.

Invitation links expire after 48 hours and work once. Inviting the same email again replaces the earlier link.

Pending Invitations, on the Users page, lists invitations nobody has accepted yet, with the date they were sent and the date they expire.

  • Resend link creates a new link, invalidates the old one, emails the new one when email is set up, and copies it.
  • Revoke invitation cancels the link.

When someone reports that a link doesn’t work, the page they see tells you why: the link is incomplete, invalid or revoked, expired, or already used. For all of these, send a new invitation.

Each member row has these actions:

Action What it does
Change Role Assigns a different role. Takes effect on their next request.
Reset Password Sets a new password for them, of at least 8 characters. Useful when someone can’t get a reset email. Available only for members who belong to no other workspace and aren’t platform administrators, because a password opens every workspace the account belongs to. Everyone else resets their own: see Forgotten passwords.
Deactivate / Activate Suspends or restores their access to this workspace without removing them. They keep access to their other workspaces.
Remove from Workspace Removes their membership. The workspace owner can’t be removed.

Deactivating or removing someone also revokes their VirtuAI CLI tokens and pairing for this workspace, which ends their CLI and OpenCode access to it. If you add them back, they pair and sign in to the CLI again.

Pairing the CLI requires a role that can create agents (agents.create), so viewer and webapp_viewer can’t pair. If someone’s role changes to one without it, their CLI stops working in this workspace on its next request.

People who sign in with a password can reset it themselves:

  1. On the sign-in page, select Forgot your password?
  2. Enter the account’s email and select Send reset link. The page says Check your email whether or not the address has an account, so it never reveals who has one.
  3. Open the link in the email and choose a new password of at least 8 characters.

The link works once and for one hour. Asking again replaces the earlier link, and you can ask at most once a minute and five times an hour. Setting the new password signs the account out of every open session and sends an email saying the password changed. The emails are in English. A new password doesn’t turn off two-factor authentication.

Keep in mind:

  • Email must be set up. The link arrives only if your VirtuAI instance can send email. If it can’t, nothing is sent: a workspace admin sets a new password with Reset Password instead, for members who belong only to that workspace.
  • Not for SSO accounts. People who sign in through your identity provider have no VirtuAI password. They reset it in the identity provider.
  • Password sign-in turned off. When a deployment allows only SSO, only platform administrators can reset a password this way.

Two-factor authentication adds a second step to signing in with a password: after the password, a 6-digit code from an authenticator app on your phone. It’s optional for everyone except platform administrators, who must use it.

  1. Select Security, at the bottom of the menu, just above Sign out.
  2. Under Two-factor authentication, select Set up.
  3. Add an account in your authenticator app, such as Google Authenticator, 1Password or Authy. On your phone, tap open it in the app; on a computer, type the key shown into the app.
  4. Enter the 6-digit code the app shows and select Turn on.
  5. Save the 10 recovery codes shown under Save your recovery codes, for example with Copy all. They appear only this once. Tick I have saved these codes somewhere safe and select Done.

Turning it on signs you out on your other devices. Security then shows On and how many recovery codes you have left.

People who sign in through single sign-on don’t see the setup: Security says their organization’s identity provider handles the second factor.

After your email and password, the sign-in page asks for an Authentication code. Open your authenticator app, enter the 6-digit code and select Verify. Each code works once.

If you don’t have your phone, select Use a recovery code and enter one of your recovery codes. Each recovery code works once. Start over goes back to the email and password.

On Security:

  • New recovery codes asks for a current code from your app, then shows 10 new codes. Your previous recovery codes stop working.
  • Turn off asks for your password and a current code. Your sign-in goes back to the password alone. Platform administrators don’t have this option.

If you lose both your phone and your recovery codes, contact support to reset your two-factor authentication. A new password doesn’t reset it.

Platform administrators must use two-factor authentication. The first time one signs in with a password without it, the sign-in page shows Set up two-factor authentication and takes them through the same steps, ending with Turn on and sign in. Nothing else works for them until it’s on.

VirtuAI holds back repeated failed attempts:

  • After 5 failed attempts for the same account within 15 minutes, every sign-in to that account is refused for 15 minutes, even with the right password.
  • After 20 failed attempts from the same network address within 15 minutes, sign-ins from that address are refused for 15 minutes, whichever accounts they were for.

Wrong two-factor codes count as failed attempts. While an account is held back, the sign-in page shows Too many attempts. Try again later. Wait 15 minutes and try again, or use Forgot your password? if the password is the problem.

A failed sign-in always gets the same answer, whether or not the email has an account.

Every workspace starts with three roles:

Role For Can
admin Workspace administrators Everything in the workspace: settings and keys, members and roles, publishing and deleting agents, reading any transcript, revealing masked data, budgets, and the Agent Builder
user People who build and run agents Create and edit agents, tools and knowledge bases, see the conversation list, dashboards and budgets, and run evaluations. Can’t publish or delete agents, or read other people’s transcripts.
viewer Stakeholders who only watch Read-only access to agents, tools, knowledge bases, the conversation list, dashboards and evaluations

Two more roles are available in every workspace:

  • webapp_viewer, a chat-only role with no access to the admin console. It can’t create or change anything in the workspace. Use it for people who should only talk to agents in the workspace web chat.
  • developer, the user role plus web chat’s dev mode. Use it for people who program with agents. Dev mode is an Enterprise feature, so the role adds it only where the workspace has it.

Any member can pair their own computer with VirtuAI Desktop through Connect this computer. Connector settings in the app’s title bar appears only to people who can open Settings, which by default means admins.

See the Permissions reference for exactly which permissions each role has.

Create a role when the defaults don’t fit, for example someone who can build agents but not see conversations, or a reviewer who can read transcripts but not reveal masked data.

  1. Open Roles and select Create Role.
  2. Enter a Name and, optionally, a Description.
  3. Tick the permissions the role should have. They’re grouped by area: agents, tools, conversations and so on.
  4. Select Create Role. It’s now available in Invite User and Change Role.

Edit or delete a custom role from its card. You can’t delete a role while anyone has it: assign those people another role first. Roles marked System are platform templates and can’t be edited or deleted. A custom role can’t take the name of a system role such as webapp_viewer or developer.

Creating, editing and deleting roles requires users.manage.

Connect your identity provider so people sign in with their company account. Any OpenID Connect provider works, Keycloak included. If you use Azure AD or LDAP, federate them in your identity provider; VirtuAI connects to one OIDC issuer per workspace.

Configure it in Settings: select SSO, A2A and CLI, under Access, and use the Identity Provider (SSO) card. This requires settings.manage.

  1. In your identity provider, create a confidential OIDC client. Set its redirect URI to https://app.imvirtuai.com/api/auth/sso/callback, and include a groups claim in the ID token.

  2. In VirtuAI, fill in:

    Field Value
    Issuer URL Your issuer, for example https://sso.example.com/realms/acme
    Client ID and Client secret From the client you created. The secret is encrypted, and shows (unchanged) once saved.
    Allowed email domains Comma-separated, for example acme.com, acme.co. Only these domains can sign in, and once verified they’re what routes a work email to your workspace.
    Group claim The claim that carries groups. Default: groups.
    Role mappings JSON mapping each group to a workspace role, for example {"virtuai-admins": "admin", "virtuai-users": "user"}
    Default role The role for people in none of the mapped groups. Leave it empty to deny them.
  3. Verify each domain. After you save, every allowed domain shows a TXT record such as virtuai-verification=…. Publish it at the domain itself (acme.com, not a subdomain), then select Verify. Until a domain is verified, nobody with an address there can sign in through SSO: VirtuAI won’t create their account or connect an existing one.

  4. Choose whether to enable JIT provisioning on first login. With it on, VirtuAI creates the account the first time someone signs in. With it off, only people who already have an account can sign in.

  5. Select Test connection to check that VirtuAI can read your issuer’s configuration, then tick Enable SSO for this workspace and Save.

People then select Sign in with SSO on the sign-in page and enter their work email.

  • Your identity provider must send email_verified: true in the ID token. Without it, sign-in is refused.
  • SSO connects to an account that already exists only if that person is already a member of your workspace, the account isn’t connected to another identity provider, and its email domain is verified. Anyone else needs an invitation first.
  • A group mapping can grant any workspace role, including admin, but never platform administrator access. Platform administrators can’t sign in with SSO at all; they use their password.
  • If someone matches no mapping and there’s no default role, sign-in is refused.
  • Each SSO sign-in completes only in the browser that started it.
  • A VirtuAI session ends when the ID token from your identity provider expires, and at most after 24 hours. Signing out of VirtuAI also signs them out of the identity provider, and VirtuAI accepts back-channel logout, so ending a session in the identity provider ends it in VirtuAI.

Platform administrators operate the VirtuAI service itself. In any workspace they belong to, they pass every permission check. They create workspaces and are the only people who see Workspaces and Logs in the menu and the super-admin control on Users. Workspace admins can’t grant this access, and SSO can’t either.

Platform administrators sign in with a password and two-factor authentication, never through SSO. A workspace admin can’t reset a platform administrator’s password. Where an employee web chat is published behind Google Cloud Identity-Aware Proxy, a platform administrator can open it only with the IAP identity already linked to their account.

  • Give admin only to trusted operators. It can read every transcript and reveal masked customer data.
  • Give each person the smallest role that lets them do their job, and use custom roles for anything in between.
  • Keep agents.publish for the people who approve what reaches customers.
  • Review the member list when people change teams or leave. With SSO, remove them in your identity provider.