User Agent Configuration
Kabeen user agent settings on macOS, Windows and Linux: where the agent reads them, in what order, and how to deploy them
The user agent needs its identity to report data: an API key, a structure and a team. A few optional settings come on top of these. This article describes these settings, the locations where the agent reads them on each system, and how to deploy them.
Settings
| Setting | macOS (profile key) | Windows (registry value) | Linux (JSON key) | Type |
|---|---|---|---|---|
| API key | ApiKey | ApiKey | ApiKey | Text |
| Structure UUID | StructureId | Structure | StructureId (or Structure) | Text |
| Team UUID | TeamId | Team | TeamId (or Team) | Text |
| Log level | not supported | LogLevel | LogLevel | Text |
| Icon hiding | HideTrayIcon | HideTrayIcon | HideTrayIcon | Boolean |
ApiKey,Structure(Id)andTeam(Id)go together: provide all three to attach the workstation to your organization.LogLevel(Windows, Linux):Error,Warn,Info,DebugorTrace, case-insensitive. Default:Info. On macOS, the agent always logs at theInfolevel.HideTrayIconhides the agent icon (see Hiding the agent icon). On Windows, aREG_DWORDvalue set to1or aREG_SZvalue"1"or"true"; on Linux,true/false,1/0or the strings"true","1","yes".LogLevelandHideTrayIconare set independently of the API key, the structure and the team.
Where to find the values
| Setting | How to retrieve it |
|---|---|
| API key | In Kabeen, Agent Tracking menu |
| Structure UUID | In your Kabeen space URL |
| Team UUID | In Kabeen, Agent Tracking menu > Go to settings |
Where the agent reads its configuration
The agent checks the following sources, from highest to lowest priority.
macOS
/Library/Managed Preferences/<login>/io.kabeen.agent.plist: configuration profile targeting the user, which takes precedence key by key over the next one;/Library/Managed Preferences/io.kabeen.agent.plist: configuration profile targeting the device (recommended);~/Library/Application Support/Kabeen/configuration.json: local file;~/Library/Preferences/io.kabeen.agent.plist: legacy location, not managed (see below).
Windows
HKLM\SOFTWARE\Policies\Kabeen\Configuration: GPO in computer configuration or device MDM profile, which takes precedence value by value over the next one;HKCU\SOFTWARE\Policies\Kabeen\Configuration: GPO in user configuration or user MDM profile;%APPDATA%\Kabeen\configuration.json: local file.
Linux
/etc/kabeen/users/<login>.json: user-specific managed configuration, which takes precedence key by key over the next one;/etc/kabeen/configuration.json: managed configuration of the workstation (recommended);~/.local/share/Kabeen/configuration.json: local file.
A managed source always takes precedence over the local file. Managed sources are combined key by key, and the agent is managed only when together they provide the API key, the structure and the team. An incomplete set is recorded in the agent log, and the local file applies in the meantime. A managed source that contains only HideTrayIcon or LogLevel is therefore valid.
A source is managed only if the user cannot modify it: on macOS, the file must be owned by root and writable by neither the group nor others, as must every folder above it, which is what an MDM client produces. A file that does not meet these rules is ignored and recorded in the log.
macOS:
~/Library/Preferences/io.kabeen.agent.plistis not a managed source. This file, which thedefaults writecommand produces in the user's profile, can be modified by the user. Since version 1.6.1, it is read only if no configuration profile and noconfiguration.jsonfile provides the API key, and it never locks the agent window. Deploy a configuration profile instead.
macOS: configuration profile (MDM)
Deploy a configuration profile for the io.kabeen.agent preference domain, with Jamf Pro, Kandji, Intune, Workspace ONE or any other MDM. The MDM writes /Library/Managed Preferences/io.kabeen.agent.plist for a profile targeting the device, and /Library/Managed Preferences/<login>/io.kabeen.agent.plist for a profile targeting the user. The profile survives agent updates. With both, the values of the user profile take precedence key by key.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadType</key> <string>Configuration</string>
<key>PayloadVersion</key> <integer>1</integer>
<key>PayloadIdentifier</key> <string>io.kabeen.agent.config</string>
<key>PayloadUUID</key> <string>REPLACE-WITH-A-UUID</string>
<key>PayloadDisplayName</key><string>Kabeen agent configuration</string>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadType</key> <string>io.kabeen.agent</string>
<key>PayloadVersion</key> <integer>1</integer>
<key>PayloadIdentifier</key> <string>io.kabeen.agent.config.payload</string>
<key>PayloadUUID</key> <string>REPLACE-WITH-ANOTHER-UUID</string>
<key>ApiKey</key> <string>YOUR_API_KEY</string>
<key>StructureId</key> <string>YOUR_STRUCTURE_UUID</string>
<key>TeamId</key> <string>YOUR_TEAM_UUID</string>
<!-- optional -->
<key>HideTrayIcon</key> <true/>
</dict>
</array>
</dict>
</plist>In an MDM that offers a custom settings payload (Application & Custom Settings in Jamf Pro, Custom Settings elsewhere), enter the io.kabeen.agent domain and provide only the dictionary of keys (ApiKey, StructureId, TeamId, HideTrayIcon). See Deploy User Agent via Jamf.
Windows: registry (GPO / Intune)
Set the values under HKLM\SOFTWARE\Policies\Kabeen\Configuration for all users of the workstation (GPO in computer configuration, device MDM profile), under HKCU\SOFTWARE\Policies\Kabeen\Configuration for one user (GPO in user configuration, logon script, user MDM profile), or under both: a value set under HKLM takes precedence over the same value under HKCU, and the other values still come from HKCU.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Kabeen\Configuration]
"ApiKey"="YOUR_API_KEY"
"Structure"="YOUR_STRUCTURE_UUID"
"Team"="YOUR_TEAM_UUID"
"LogLevel"="Info"
"HideTrayIcon"=dword:00000001The simplest way is the Kabeen ADMX administrative template: Kabeen ADMX (.zip). It contains Kabeen.admx and its Kabeen.adml language files in English (en-US) and French (fr-FR). Since revision 1.2, each policy exists in computer configuration (HKLM) and in user configuration (HKCU), under Administrative Templates > Kabeen Configuration:
| Policy | Registry value | Written as |
|---|---|---|
| Set API Key | ApiKey | REG_SZ |
| Set Team UUID | Team | REG_SZ |
| Set Structure UUID | Structure | REG_SZ |
| Set log level | LogLevel | REG_SZ (Error … Trace) |
| Hide the notification area icon | HideTrayIcon | REG_DWORD 1 (enabled) / 0 (disabled) |
- GPO: copy
Kabeen.admxand the language folders toC:\Windows\PolicyDefinitions, or to the domain's central store\\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions. See Deploy User Agent via GPO. - Intune: import
Kabeen.admxwith aKabeen.admlfile, then create a profile from the imported administrative templates, assigned to devices (computer policies) or to users (user policies). See Deploy User Agent via Intune. - Upgrading from revision 1.0 or 1.1: the namespace and the policy names are unchanged, so overwriting the files keeps your GPO settings (they remain user policies). Replace the
.admxand both.admlfiles together: revision 1.2 requires its own language files. Intune does not replace an imported template: delete the profiles that use it, delete the old template, import the new one and recreate the profiles.
Linux: managed configuration file
Deploy /etc/kabeen/configuration.json with your configuration management tool (Ansible, Puppet, Salt, Intune for Linux…). The file applies to all users of the workstation and survives updates: the package creates the empty folder, never the file. /usr/share/doc/kabeen/configuration.json.example lists all the keys.
{
"ApiKey": "YOUR_API_KEY",
"StructureId": "YOUR_STRUCTURE_UUID",
"TeamId": "YOUR_TEAM_UUID",
"HideTrayIcon": false,
"LogLevel": "Info"
}- The file is taken into account only if it and every folder above it (
/etc/kabeen,/etc) are owned byrootand writable by neither the group nor others (chown root:root,chmod 0644for the file,0755for the folders), and if it is smaller than 64 KiB. Otherwise it is ignored and recorded in the log. The package creates/etc/kabeenthis way; if your tool creates it first, give it the same owner and permissions. - As on Windows, the agent is managed only with the API key, the structure and the team. A file that contains only
HideTrayIconorLogLevelapplies these settings and leaves authentication local. An incomplete set is recorded in the log with the names of the missing keys. - The macOS key names (
StructureId,TeamId) and the Windows key names (Structure,Team) are both accepted. With both, the macOS name wins and the mismatch is recorded. Key names are case-sensitive; a close misspelling (apikey) is recorded with the correct spelling. - Each key is read separately: an unknown key or a key of the wrong type is ignored and recorded, and the rest of the file applies. Only invalid JSON discards the whole file.
- User-specific configuration:
/etc/kabeen/users/<login>.json, in the same format and subject to the same ownership rules, takes precedence key by key over the workstation file for that user. Typically, this is a different team (TeamId) for one user of a shared workstation. - These files are readable by all users of the workstation, like the configuration profile on macOS: treat the API key as a workstation identifier, not as a secret.
Deployment on a Linux fleet is detailed in User Agent on Linux (beta).
Local file (unmanaged workstations)
On an unmanaged workstation, the agent saves its configuration itself when the user authenticates in its window. You can also place the file yourself, with PascalCase key names:
- macOS:
~/Library/Application Support/Kabeen/configuration.json - Windows:
%APPDATA%\Kabeen\configuration.json - Linux:
~/.local/share/Kabeen/configuration.json
{
"ApiKey": "YOUR_API_KEY",
"Structure": "YOUR_STRUCTURE_UUID",
"Team": "YOUR_TEAM_UUID",
"HideTrayIcon": true
}⚠️ The local file is rewritten when the user authenticates again or changes team: an extra key such as
HideTrayIconthen disappears. For a lasting setting, use the managed source (configuration profile, registry or/etc/kabeen).
When changes take effect
| Setting | Taken into account |
|---|---|
ApiKey, Structure, Team | Within about ten seconds, without a restart |
HideTrayIcon | At agent startup: restart the agent |
LogLevel (Windows, Linux) | At agent startup: restart the agent |
Hiding the agent icon
The agent can run discreetly:
- Dock icon (macOS): always hidden. The agent never shows an icon in the Dock, including at first launch.
- Menu bar, notification area or system tray icon: hidden on request with the
HideTrayIconsetting. It is visible by default. The setting applies to macOS, Windows and Linux.
To hide the icon, set HideTrayIcon in the managed source (recommended) or in the local file, then restart the agent.
⚠️ Loss of access to the agent window. Once the icon is hidden, the user can no longer open the agent window to authenticate or change team. Reserve this setting for workstations whose API key, structure and team are also deployed by MDM, GPO or managed file. To show the icon again, remove
HideTrayIconfrom the source that sets it and restart the agent. On Linux, the Kabeen launcher in the applications menu always opens the window, even with the icon hidden.