Skip to content
Docs

Organization-Managed and Shared Computers

On an organization-managed computer, Connect identifies each Windows user separately. This fits corporate laptops, shared desktops and labs. An administrator installs Connect once, by hand, through Group Policy or through an MDM. Each person who signs in to Windows authorizes with your organization’s SSO the first time. From then on every AI request they make is attributed to them, with their own budgets, rate limits and DLP policy. Nobody has to turn interception on.

The same setting suits a laptop with a single user: that person authorizes once and the computer carries no other identity. Without it, Connect keeps one identity per computer, so everyone on it is recorded as the first person who enrolled.

This page covers Windows.

Requirement Where
SSO configured for the organization Settings → Single Sign-On, see Single Sign-On
A way for users to exist in AgentWatch SSO Auto create users, or SCIM provisioning
The organization’s enrollment token Agent Fleet → Agent Connect Settings → Enrollment Token
Require sign-in to approve each computer switched on Agent Fleet → Agent Connect Settings

Switch on Require sign-in to approve each computer before anyone uses the computers. On a shared computer any signed-in user can read the enrollment token from the registry. Without this setting, the token and an email address are enough to obtain that employee’s key. With it on, the token alone identifies nobody.

Each person who authorizes uses one seat from your plan’s user limit.

Choose one of these. All need an administrator, and all set the same policy.

With Group Policy (Active Directory). Connect ships a Group Policy template.

  1. Copy AgentWatchConnect.admx and the en-US folder from C:\Program Files\AgentWatch Connect\policy\ on any computer where Connect is installed into your Central Store, \\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions\.
  2. In Group Policy Management, edit a GPO linked to the computers’ OU and open Computer Configuration → Policies → Administrative Templates → AgentWatch → AgentWatch Connect.
  3. Enable AgentWatch server URL, Enrollment token and Identify each Windows user separately. Optionally enable Email domain and Corporate proxy.
  4. Deploy the installer silently with your software-distribution tool, for example a computer startup script:
    Terminal window
    .\AgentWatch-Connect-Setup-<version>-windows-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOTRAY=1

A computer picks up the policy at its next restart, or after gpupdate /force followed by Restart-Service AgentWatchConnect.

With Intune or another MDM. Follow Microsoft Intune, and add PerUserIdentity = 1 (DWORD) to the settings it pushes. Assign the app to a device group.

In the Setup wizard (one computer at a time). Run Setup as an administrator. On the Computer type page choose Organization-managed or shared computer, then enter the server URL and enrollment token, and optionally your email domain and corporate proxy. Setup checks that the server starts with https:// and that a token was entered. Running Setup again shows the current values, and choosing Personal computer removes the settings Setup wrote. If Group Policy or an MDM already sets these values, Setup does not show the pages and leaves the policy alone.

By hand or from your own script. Set these values under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\AgentWatch\Connect, then install Connect:

Value Type Example
ServerURL String https://agentwatch.example.com
EnrollmentToken String the token from Agent Connect Settings
EmailDomain String example.com
PerUserIdentity DWORD 1
UpstreamProxy (optional) String http://proxy.example.com:8080

From the installer’s command line. Run this in an Administrator PowerShell:

Terminal window
.\AgentWatch-Connect-Setup-<version>-windows-x64.exe /SILENT `
/SERVERURL=https://agentwatch.example.com `
/ENROLLMENTTOKEN=<token> `
/EMAILDOMAIN=example.com `
/UPSTREAMPROXY=http://proxy.example.com:8080 `
/PERUSER=1

Do not add /LOG to this command: Setup writes its command line into the log, including the token. Uninstalling removes a policy that the installer wrote, and leaves one set by Group Policy.

If you set the policy on a computer where Connect is already running, restart the service so it takes effect:

Terminal window
Restart-Service AgentWatchConnect

On Linux the choice is made after installing, with one command. Installing the .deb never asks a question (Ubuntu Software and apt -y have no terminal to ask in), so every Linux install starts as a personal computer unless your MDM has already placed /etc/agentwatch/connect.json.

With an MDM. Download Settings (connect.json) from Agent Fleet → Linux, place it at /etc/agentwatch/connect.json owned by root with mode 600, then install the .deb. The install sets the computer up for every user without asking.

One computer at a time. Install the .deb, then run in a terminal:

Terminal window
sudo agentwatch-connect computer-type

It asks Who uses this computer?: choose 2) Organization-managed or shared computer, then enter the server URL and the enrollment token. The token is not shown as you type; only its length is printed. The email domain and corporate proxy are optional. Running the command again offers the current values.

The self-extracting .bin installer asks the same question before it installs anything, when it is run from a terminal. Pressing Ctrl-C at any of its questions stops the installer without installing.

From a script, without prompts. Give the token in a root-only file with --token-file, or pipe it in with --token-file /dev/stdin:

Terminal window
printf '%s' "$TOKEN" | sudo agentwatch-connect computer-type --shared \
--server https://agentwatch.example.com --email-domain example.com --token-file /dev/stdin

Do not put the token on the command line, either as --token or as an AW_ENROLL_TOKEN=… prefix: other users can see a command line in the process list, and it stays in your shell history.

The command checks that the server answers before it changes anything. With --proxy it cannot check from the computer itself, so it says it skipped the check and continues; the service then connects through the proxy. The token itself is checked when the first person signs in. It then writes /etc/agentwatch/connect.json (root-owned, mode 600, marked "WrittenBySetup": true), reinstalls Connect for the whole computer, and waits up to 60 seconds for the service to log Per-user identity ON. If that does not happen it says which step failed and exits with an error.

Check it. agentwatch-connect status prints one of:

Line Meaning
computer type: personal one person; they finish setup from the AgentWatch icon
computer type: shared (set by this computer's setup) set by computer-type, running for every user
computer type: shared (not enrolled yet) set by computer-type, but the service has not reported per-user identity yet
computer type: organization-managed (set by your IT) your MDM placed the file; computer-type will not change it
computer type: shared or organization-managed (run with sudo for details) run without sudo, so the root-only settings file cannot be read

Switch back to personal:

Terminal window
sudo agentwatch-connect computer-type --personal --user <name>

This removes the file computer-type wrote, the computer’s enrollment and every user’s stored sign-in, then installs Connect for that person. The device is not removed from the console; it stops checking in. A file your MDM placed (no WrittenBySetup marker) is never changed or removed: the command refuses and says so.

Uninstalling. apt remove keeps /etc/agentwatch/connect.json, so reinstalling sets the computer up for every user again. apt purge and agentwatch-connect uninstall --purge delete it only if computer-type wrote it.

Symptom Cause Fix
computer-type changes the whole computer: run with sudo. run without root add sudo
Could not reach https://… Nothing was changed. server URL wrong, or no direct route to it check the URL opens in a browser; if the network only allows traffic through a corporate proxy, pass --proxy http://host:port (the check is then skipped)
There is no user "…" on this computer. Nothing was changed. --user mistyped pass an existing login name
This computer's type is managed by your organization's IT an MDM placed the file change it in your MDM
The service did not report "Per-user identity ON" service failed to start or enroll journalctl -u agentwatch-connect -n 50; undo with computer-type --personal
exits with code 2 and prints usage no terminal and no --personal / --shared pass one of them
  1. They sign in to Windows with their own account. Connect starts by itself.
  2. If they have not authorized on this computer yet, the AgentWatch Connect window opens with a code and an Open sign-in page button.
  3. They sign in with SSO and confirm the code. The window then shows Signed in as their address.

They do this once per computer. Their AI traffic is refused until it is done, rather than being sent under someone else’s name.

An app that is not a browser, such as a command-line tool, gets a 503 with error.code of sign-in-required until the user has authorized. A browser opening an AI site gets a page with the sign-in link.

Run these on the computer in an Administrator PowerShell:

Terminal window
Get-Service AgentWatchConnect
Select-String -Path C:\ProgramData\AgentWatch\logs\service.log -Pattern 'PerUser' | Select-Object -Last 5
icacls C:\ProgramData\AgentWatch

You should see the service Running, a log line containing Per-user identity ON, and folder rights for SYSTEM and Administrators only, with no Users entry. Then have two people each send an AI request and check Usage Insights: each request should show its own person. In Agent Fleet the computer should show one row for each of them.

How do I see who uses each shared computer?

Section titled “How do I see who uses each shared computer?”

Open Agent Fleet → Connected Agents. Each row is one person on one device. A computer that three employees use shows three rows with the same hostname, and one employee who uses two computers shows two rows with the same email. Computers with no heartbeat for over an hour (stale) are hidden; untick Hide stale to show them, the number next to it says how many.

Column Meaning
User The AgentWatch employee, taken from their own gateway key, and whether they are Monitored or Exempt. A computer account cannot claim to be someone else. Under it, OS account: the computer login they used, with its type (Local, Microsoft, AD, Entra ID, Directory) and whether it is an administrator. “Admin” can be left blank when it cannot be determined, for example a domain user who is an administrator through a nested group.
Computer Hostname and operating system.
Status Online (heartbeat in the last 2 minutes), Offline (within the hour) or Stale, and when it last reported. Shared by all of the device’s rows.
Connect The AgentWatch Connect version, with the newer version when one is available.
Root CA Whether Connect’s certificate is trusted on the computer. When it is not, captured sites fail with a certificate error.
Requests Requests Connect relayed: for a person, since they were first seen on the device; for a device with no one signed in, since Connect last started.
Capture on this computer Hosts captured on this computer alone (from its Domains dialog). Tracked Domains apply to every computer and are not listed here.
Public IP The address the computer reaches AgentWatch from. Computers behind one office network share it.

A person appears as soon as they authorize on the computer, before they send any traffic. A computer with no one listed shows a single row: No one signed in yet, or Update Connect to see users when it runs Connect 1.0.170 or earlier. People unavailable means the server could not read the list at that moment; it is not the same as nobody.

The People tile counts each person once across all devices. Active users (30 days), shown to administrators, counts people with any AI traffic in the last 30 days on any device or API key, next to the seats in use. Seats are unchanged: a seat is a person provisioned in AgentWatch, whether or not they used a device.

Each row has 🌐 Domains & traffic and a ⋯ menu. The menu pauses or resumes monitoring for the person (on all of their computers), removes the person from this device’s list (they appear again if they use it), and, on the first row of each device, Remove computer…, which asks you to type the computer’s name. Removals are recorded in Settings → Audit Logs.

The device and account labels Connect reports stay inside AgentWatch. They are removed before a request is forwarded to an AI provider.

Symptom Cause Fix
Everyone is recorded as one person PerUserIdentity is not set, or the service has not restarted since Set the policy, then Restart-Service AgentWatchConnect
The window shows no code and traffic is refused The enrollment failed, or SSO did not provision the user Check service.log for [PerUser]. identity_not_provisioned after sign-in means Auto create users is off and the user was not provisioned
no EnrollmentToken in the log The policy has no token Set EnrollmentToken and restart the service
Could not close the data folder in the log The service could not change the folder’s rights Run icacls C:\ProgramData\AgentWatch as an administrator. No new user keys are stored until this works
This computer is configured by your organization Setup was attempted from the window Change the policy instead; the window cannot reconfigure a shared computer
The computer is missing from Agent Fleet The server is older than this feature Upgrade the server. The computer works, and is listed for super admins only
Users authorize again after every restart The computer is reset on reboot (Deep Freeze, reimaging) Exclude C:\ProgramData\AgentWatch from the reset
A person is listed under someone else’s email They approved the sign-in in a browser still signed in as another account, often the administrator who installed Connect The person opens the Connect window while signed in to Windows as themselves and clicks Not you? Sign in again (Connect 1.0.171 and later), then approves in a private browser window or after signing out of the other account. On earlier versions, an administrator on that computer deletes C:\ProgramData\AgentWatch\users\<their SID>.json and runs Restart-Service AgentWatchConnect, and the person signs in again in a private window. Either way, rotate the other account’s key if it was used. The approval page warns when the computer account does not match the signed-in person
The OS Account column is blank Connect has not finished looking up the account yet, or the computer runs Connect 1.0.170 or earlier Wait a few minutes, or update Connect
  • Exempting one person does not apply here. Monitoring exemptions in Agent Fleet follow the computer’s identity, which a shared computer does not have. Pausing interception for the whole organization still works.
  • Administrators can read the stored keys. Users’ keys are protected from other users by the folder’s rights, not from administrators of that computer.
  • A person who only uses AI through WebSocket connections appears in Agent Fleet after their first regular request; WebSocket traffic alone does not add them.
  • The device and account labels are reported by Connect. An employee can label their own row (for example, appear on a device they never used by copying its machine id), but cannot place another employee on a device.