{
  "cronPattern": "30 4 * * *",
  "entityTypes": [
    {
      "icon": "link",
      "id": "foreignSecurityPrincipal",
      "plural": "Foreign security principals",
      "singular": "Foreign security principal",
      "searchRequests": [
        {
          "baseDn": "dc=domain,dc=test",
          "filter": "(objectClass=foreignSecurityPrincipal)",
          "scope": "subtree"
        }
      ],
      "attributes": [
        {
          "attribute": "cn",
          "id": "Common Name",
          "name": "Common Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "description",
          "id": "Description",
          "name": "Description",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "objectSid",
          "id": "SID",
          "name": "SID",
          "syntax": {
            "type": "sid"
          }
        },
        {
          "attribute": "whenChanged",
          "id": "When Changed",
          "name": "When Changed",
          "syntax": {
            "type": "generalizedTime"
          }
        },
        {
          "attribute": "whenCreated",
          "id": "When Created",
          "name": "When Created",
          "syntax": {
            "type": "generalizedTime"
          }
        }
      ]
    },
    {
      "icon": "person",
      "id": "user",
      "plural": "Users",
      "singular": "User",
      "searchRequests": [
        {
          "baseDn": "dc=domain,dc=test",
          "filter": "(&(objectClass=user)(!(objectClass=computer)))",
          "scope": "subtree"
        }
      ],
      "attributes": [
        {
          "attribute": "accountExpires",
          "id": "Account Expires",
          "name": "Account Expires",
          "syntax": {
            "type": "interval"
          }
        },
        {
          "attribute": "userAccountControl",
          "id": "Account Type",
          "name": "Account Type",
          "syntax": {
            "type": "enum",
            "options": {
              "Normal": 512,
              "Interdomain trust": 2048,
              "Workstation trust": 4096,
              "Server trust": 8192,
              "MNS logon": 131072
            }
          }
        },
        {
          "attribute": "badPwdCount",
          "id": "Bad Password Count",
          "name": "Bad Password Count",
          "syntax": {
            "type": "integer"
          }
        },
        {
          "attribute": "l",
          "id": "City",
          "name": "City",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "cn",
          "id": "Common Name",
          "name": "Common Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "company",
          "id": "Company",
          "name": "Company",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "countryCode",
          "id": "Country Code",
          "name": "Country Code",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "countryName",
          "id": "Country Name",
          "name": "Country Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "createTimeStamp",
          "id": "Create Time Stamp",
          "name": "Create Time Stamp",
          "syntax": {
            "type": "generalizedTime"
          }
        },
        {
          "attribute": "isDeleted",
          "id": "Deleted",
          "name": "Deleted",
          "syntax": {
            "type": "boolean"
          }
        },
        {
          "attribute": "department",
          "id": "Department",
          "name": "Department",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "departmentNumber",
          "id": "Department Number",
          "name": "Department Number",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "description",
          "id": "Description",
          "name": "Description",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "displayName",
          "id": "Display Name",
          "name": "Display Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "distinguishedName",
          "id": "Distinguished Name",
          "name": "Distinguished Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "division",
          "id": "Division",
          "name": "Division",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "mail",
          "id": "Email Address",
          "name": "Email Address",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "employeeID",
          "id": "Employee ID",
          "name": "Employee ID",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "userAccountControl",
          "id": "Enabled",
          "name": "Enabled",
          "syntax": {
            "type": "flag",
            "cmp": false,
            "mask": 2
          }
        },
        {
          "attribute": "givenName",
          "id": "GivenName",
          "name": "GivenName",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "dn",
          "id": "ID",
          "name": "ID",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "initials",
          "id": "Initials",
          "name": "Initials",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "lastLogon",
          "id": "Last Logon",
          "name": "Last Logon",
          "syntax": {
            "type": "interval"
          }
        },
        {
          "attribute": "lastLogonTimestamp",
          "id": "Last Logon Timestamp",
          "name": "Last Logon Timestamp",
          "syntax": {
            "type": "interval"
          }
        },
        {
          "attribute": "userAccountControl",
          "id": "Lock Out",
          "name": "Lock Out",
          "syntax": {
            "type": "flag",
            "cmp": true,
            "mask": 16
          }
        },
        {
          "attribute": "logonCount",
          "id": "Logon Count",
          "name": "Logon Count",
          "syntax": {
            "type": "integer"
          }
        },
        {
          "attribute": "manager",
          "id": "Manager",
          "name": "Manager",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "cn",
          "id": "Name",
          "name": "Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "userAccountControl",
          "id": "Password Expired",
          "name": "Password Expired",
          "syntax": {
            "cmp": true,
            "mask": 8388608,
            "type": "flag"
          }
        },
        {
          "attribute": "userAccountControl",
          "id": "Password Never Expires",
          "name": "Password Never Expires",
          "syntax": {
            "cmp": true,
            "mask": 65536,
            "type": "flag"
          }
        },
        {
          "attribute": "userAccountControl",
          "id": "Password Not Required",
          "name": "Password Not Required",
          "syntax": {
            "cmp": true,
            "mask": 32,
            "type": "flag"
          }
        },
        {
          "attribute": "objectClass",
          "id": "Object Classes",
          "name": "Object Classes",
          "syntax": {
            "type": "multiString",
            "delimiter": "/"
          }
        },
        {
          "attribute": "pwdLastSet",
          "id": "Pwd Last Set",
          "name": "Pwd Last Set",
          "syntax": {
            "type": "interval"
          }
        },
        {
          "attribute": "sAMAccountName",
          "id": "SAM Account Name",
          "name": "SAM Account Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "objectSid",
          "id": "SID",
          "name": "SID",
          "syntax": {
            "type": "sid"
          }
        },
        {
          "attribute": "sn",
          "id": "Surname",
          "name": "Surname",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "telephoneNumber",
          "id": "Telephone Number",
          "name": "Telephone Number",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "userPrincipalName",
          "id": "User Principal Name",
          "name": "userPrincipalName",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "whenChanged",
          "id": "When Changed",
          "name": "When Changed",
          "syntax": {
            "type": "generalizedTime"
          }
        },
        {
          "attribute": "whenCreated",
          "id": "When Created",
          "name": "When Created",
          "syntax": {
            "type": "generalizedTime"
          }
        },
        {
          "attribute": "userWorkStations",
          "id": "Workstations",
          "name": "Workstations",
          "syntax": {
            "type": "string"
          }
        }
      ]
    },
    {
      "icon": "assignment",
      "id": "group",
      "plural": "Groups",
      "singular": "Group",
      "searchRequests": [
        {
          "baseDn": "dc=domain,dc=test",
          "filter": "(objectClass=group)",
          "scope": "subtree"
        }
      ],
      "attributes": [
        {
          "attribute": "createTimeStamp",
          "id": "Create Time Stamp",
          "name": "Create Time Stamp",
          "syntax": {
            "type": "interval"
          }
        },
        {
          "attribute": "isdeleted",
          "id": "Deleted",
          "name": "Deleted",
          "syntax": {
            "type": "boolean"
          }
        },
        {
          "attribute": "description",
          "id": "Description",
          "name": "Description",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "displayName",
          "id": "Display Name",
          "name": "Display Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "distinguishedName",
          "id": "Distinguished Name",
          "name": "Distinguished Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "groupType",
          "id": "Group Category",
          "name": "Group Category",
          "syntax": {
            "type": "enum",
            "options": {
              "Security": 2147483648
            },
            "default": "Distribution"
          }
        },
        {
          "attribute": "groupType",
          "id": "Group Scope",
          "name": "Group Scope",
          "syntax": {
            "type": "enum",
            "options": {
              "Global": 2,
              "Domain Local": 4,
              "Universal": 8
            }
          }
        },
        {
          "attribute": "groupType",
          "id": "Group Type",
          "name": "Group Type",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "dn",
          "id": "ID",
          "name": "ID",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "isdeleted",
          "id": "Is Deleted",
          "name": "Is Deleted",
          "syntax": {
            "type": "boolean"
          }
        },
        {
          "attribute": "managedBy",
          "id": "Managed By",
          "name": "Managed By",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "cn",
          "id": "Name",
          "name": "Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "objectClass",
          "id": "Object Classes",
          "name": "Object Classes",
          "syntax": {
            "type": "multiString",
            "delimiter": "/"
          }
        },
        {
          "attribute": "memberOf",
          "id": "Parents",
          "name": "Parents",
          "syntax": {
            "type": "multiString",
            "delimiter": ";"
          }
        },
        {
          "attribute": "sAMAccountName",
          "id": "SAM Account Name",
          "name": "SAM Account Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "sAMAccountType",
          "id": "SAM Account Type",
          "name": "SAM Account Type",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "objectSid",
          "id": "SID",
          "name": "SID",
          "syntax": {
            "type": "sid"
          }
        },
        {
          "attribute": "whenChanged",
          "id": "When Changed",
          "name": "When Changed",
          "syntax": {
            "type": "generalizedTime"
          }
        },
        {
          "attribute": "whenCreated",
          "id": "When Created",
          "name": "When Created",
          "syntax": {
            "type": "generalizedTime"
          }
        }
      ]
    },
    {
      "icon": "computer",
      "id": "computer",
      "plural": "Computers",
      "singular": "Computer",
      "searchRequests": [
        {
          "baseDn": "dc=domain,dc=test",
          "filter": "(objectClass=computer)",
          "scope": "subtree"
        }
      ],
      "attributes": [
        {
          "attribute": "accountExpires",
          "id": "Account Expires",
          "name": "Account Expires",
          "syntax": {
            "type": "interval"
          }
        },
        {
          "attribute": "userAccountControl",
          "id": "Account Type",
          "name": "Account Type",
          "syntax": {
            "type": "enum",
            "options": {
              "Normal": 512,
              "Interdomain trust": 2048,
              "Workstation trust": 4096,
              "Server trust": 8192,
              "MNS logon": 131072
            }
          }
        },
        {
          "attribute": "badPwdCount",
          "id": "Bad Password Count",
          "name": "Bad Password Count",
          "syntax": {
            "type": "integer"
          }
        },
        {
          "attribute": "cn",
          "id": "Common Name",
          "name": "Common Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "createTimeStamp",
          "id": "Create Time Stamp",
          "name": "Create Time Stamp",
          "syntax": {
            "type": "generalizedTime"
          }
        },
        {
          "attribute": "isDeleted",
          "id": "Deleted",
          "name": "Deleted",
          "syntax": {
            "type": "boolean"
          }
        },
        {
          "attribute": "description",
          "id": "Description",
          "name": "Description",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "displayName",
          "id": "Display Name",
          "name": "Display Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "distinguishedName",
          "id": "Distinguished Name",
          "name": "Distinguished Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "userAccountControl",
          "id": "Enabled",
          "name": "Enabled",
          "syntax": {
            "type": "flag",
            "cmp": false,
            "mask": 2
          }
        },
        {
          "attribute": "dn",
          "id": "ID",
          "name": "ID",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "lastLogon",
          "id": "Last Logon",
          "name": "Last Logon",
          "syntax": {
            "type": "interval"
          }
        },
        {
          "attribute": "lastLogonTimestamp",
          "id": "Last Logon Timestamp",
          "name": "Last Logon Timestamp",
          "syntax": {
            "type": "interval"
          }
        },
        {
          "attribute": "userAccountControl",
          "id": "Lock Out",
          "name": "Lock Out",
          "syntax": {
            "type": "flag",
            "cmp": true,
            "mask": 16
          }
        },
        {
          "attribute": "logonCount",
          "id": "Logon Count",
          "name": "Logon Count",
          "syntax": {
            "type": "integer"
          }
        },
        {
          "attribute": "cn",
          "id": "Name",
          "name": "Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "objectClass",
          "id": "Object Classes",
          "name": "Object Classes",
          "syntax": {
            "type": "multiString",
            "delimiter": "/"
          }
        },
        {
          "attribute": "operatingSystem",
          "id": "Operating System",
          "name": "Operating System",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "operatingSystemServicePack",
          "id": "Operating System Service Pack",
          "name": "Operating System Service Pack",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "operatingSystemVersion",
          "id": "Operating System Version",
          "name": "Operating System Version",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "pwdLastSet",
          "id": "Pwd Last Set",
          "name": "Pwd Last Set",
          "syntax": {
            "type": "interval"
          }
        },
        {
          "attribute": "sAMAccountName",
          "id": "SAM Account Name",
          "name": "SAM Account Name",
          "syntax": {
            "type": "string"
          }
        },
        {
          "attribute": "objectSid",
          "id": "SID",
          "name": "SID",
          "syntax": {
            "type": "sid"
          }
        },
        {
          "attribute": "whenChanged",
          "id": "When Changed",
          "name": "When Changed",
          "syntax": {
            "type": "generalizedTime"
          }
        },
        {
          "attribute": "whenCreated",
          "id": "When Created",
          "name": "When Created",
          "syntax": {
            "type": "generalizedTime"
          }
        },
        {
          "attribute": "userWorkStations",
          "id": "Workstations",
          "name": "Workstations",
          "syntax": {
            "type": "string"
          }
        }
      ]
    }
  ],
  "insightsSourceId": "2",
  "insightsSourceToken": "example-insights-source-token",
  "insightsUrl": "http://localhost:8080",
  "ldapUrl": "ldap://localhost:389",
  "ldapUsername": "cn=admin,dc=example,dc=org",
  "ldapPassword": "P4ssw0rd",
  "relationshipTypes": [
    {
      "from": "foreignSecurityPrincipal",
      "to": "group",
      "targetAttribute": "memberOf"
    },
    {
      "from": "user",
      "to": "group",
      "targetAttribute": "memberOf"
    },
    {
      "from": "group",
      "to": "group",
      "targetAttribute": "memberOf"
    },
    {
      "from": "computer",
      "to": "group",
      "targetAttribute": "memberOf"
    }
  ]
}
