{
  "listen": ":9091",
  "public_url": "https://ts01-mgmt.example.org",
  "data_dir": "C:\\ProgramData\\SessionGuard",
  "master_url": "https://sessionguard.example.org",
  "enrollment_token": "CHANGE-THIS-TO-A-LONG-RANDOM-SECRET",
  "heartbeat_seconds": 10,
  "oidc": {
    "issuer": "https://id.example.org",
    "client_id": "POCKET-ID-AGENT-CLIENT-ID",
    "client_secret": "POCKET-ID-AGENT-CLIENT-SECRET",
    "redirect_url": "https://ts01-mgmt.example.org/oidc/callback",
    "logout_redirect_url": "https://ts01-mgmt.example.org/",
    "admin_groups": [
      "sessionguard-admins"
    ],
    "secure_cookie": true
  },
  "policy": {
    "cleanup": {
      "enabled": true,
      "grace_seconds": 600,
      "poll_seconds": 10,
      "retry_seconds": 60,
      "dry_run": true,
      "exclude_users": [
        "Administrator",
        "DefaultAccount",
        "WDAGUtilityAccount"
      ],
      "exclude_sids": [
        "S-1-5-18",
        "S-1-5-19",
        "S-1-5-20"
      ],
      "allowed_profile_roots": [
        "C:\\Users"
      ]
    },
    "profiles": {
      "enabled": true,
      "store_root": "\\\\fileserver\\SessionGuardProfiles",
      "backup_on_logoff": true,
      "restore_on_logon": true,
      "backup_delay_seconds": 5,
      "retry_seconds": 60,
      "restore_window_seconds": 120,
      "keep_versions": 2,
      "exclude_users": [
        "Administrator"
      ],
      "exclude_sids": [
        "S-1-5-18",
        "S-1-5-19",
        "S-1-5-20"
      ],
      "folders": [
        {
          "path": "AppData\\Roaming\\Example",
          "exclude_globs": [
            "Cache/**",
            "*.tmp"
          ]
        },
        {
          "path": "Desktop"
        },
        {
          "path": "Documents"
        }
      ]
    },
    "sessions": {
      "control_enabled": true,
      "disconnected_logoff_enabled": true,
      "disconnected_timeout_seconds": 3600,
      "exclude_users": [
        "Administrator"
      ],
      "exclude_sids": [
        "S-1-5-18",
        "S-1-5-19",
        "S-1-5-20"
      ]
    },
    "templates": [
      {
        "id": "support-url",
        "kind": "url",
        "target": "Desktop\\Support.url",
        "url": "https://support.example.org",
        "overwrite": true
      },
      {
        "id": "company-shortcut",
        "kind": "shortcut",
        "target": "Desktop\\Fachanwendung.lnk",
        "overwrite": true,
        "shortcut": {
          "target": "C:\\Program Files\\Example\\app.exe",
          "arguments": "",
          "description": "Fachanwendung"
        }
      },
      {
        "id": "settings-file",
        "kind": "file",
        "target": "AppData\\Roaming\\Example\\defaults.json",
        "source": "\\\\fileserver\\sessionguard-templates\\defaults.json",
        "overwrite": true
      },
      {
        "id": "work-folder",
        "kind": "directory",
        "target": "Desktop\\Arbeit",
        "overwrite": false
      }
    ]
  }
}
