# Lansweeper

## **Introduction**

This documentation explains how to integrate Lansweeper with Autom Mate to automate IT asset management workflows. It includes details about the application, credential setup, and step-by-step guidance on using Lansweeper actions within Autom Mate.

***

## **What is Lansweeper?**

Lansweeper is a leading IT asset management tool that provides a comprehensive view of your network. It discovers devices, software, and hardware, helping organizations manage their IT infrastructure effectively and gain actionable insights.

***

## **Autom Mate Integration with Lansweeper**

Autom Mate enables seamless integration with Lansweeper’s APIs, allowing users to automate asset discovery, reporting, and management tasks. With Autom Mate, you can interact with Lansweeper’s rich data capabilities to streamline IT operations and improve efficiency.

***

## **Credentials**

To enable the Lansweeper integration, users must add their credentials to the Autom Mate Vault. Lansweeper supports two authentication methods: **Personal Access Token (PAT)** and **OAuth 2.0**.

### **1. Personal Access Token (PAT) Authentication**

* **Steps to Add Credential**:
  1. Navigate to the **Vault Page** and click **Add New Credential**.
  2. Fill in the required fields:
     * **Connector Name**: Provide a friendly and globally recognizable name.
     * **Authentication Type**: Select `personal_access_token`.
     * **Personal Access Token (PAT)**: Enter your personal access token.
  3. Save the credential.

### **2. OAuth 2.0 Authentication**

* **Steps to Add Credential**:
  1. Navigate to the **Vault Page** and click **Add New Credential**.
  2. Fill in the required fields:
     * **Connector Name**: Provide a friendly and globally recognizable name.
     * **Authentication Type**: Select `oauth20`.
     * **Client ID**: Enter your OAuth Client ID.
     * **Client Secret**: Enter the OAuth Client Secret.
  3. Save the credential.

These credentials ensure secure and authorized communication between Autom Mate and Lansweeper’s APIs.

***

## **How to Use Actions**

### **Delete an Asset**

#### **Description and Purpose**

The **Delete Asset** action allows users to remove an asset from Lansweeper. This action is useful for keeping your inventory accurate by removing decommissioned or unnecessary devices.

#### **Usage Stepper**

{% stepper %}
{% step %}
Select Lansweeper credentials to Autom Mate’s Vault.
{% endstep %}

{% step %}
Select the **Delete Asset** action.
{% endstep %}

{% step %}
Provide the required inputs, including `Site ID` and `Asset Key`.
{% endstep %}

{% step %}
Execute the action to delete the specified asset.
{% endstep %}
{% endstepper %}

{% hint style="success" %}

#### **Inputs**

* **Site ID (Required)**: The unique identifier of the site containing the asset.
* **Asset Key (Required)**: The unique key identifying the asset to be deleted. Or select from the list.
  {% endhint %}

<details>

<summary>Sample Output</summary>

```json
{
  "application_id": "3a354946-2048-4c68-8269-81188c727cd9",
  "name": "Lansweeper Delete an Asset",
  "fetch_fields": {
    "inputs": [],
    "field_steps": [],
    "excludes": [],
    "only_last_children": true
  },
  "static_fields": [],
  "display_names": {},
  "input_value_options": {
    "site_id": {
      "type": "string",
      "option_fill_type": "dynamic",
      "option_configuration": {
        "path": "/api/v2/graphql",
        "type": "select",
        "method": "POST",
        "field_map": {
          "path": "data.me.profiles",
          "value": "*.site.id",
          "display_name": "*.site.name"
        },
        "body_param": {
          "data": {
            "query": "query { me { id profiles { id site { id name } } } }"
          },
          "content_type": "application/json"
        },
        "field_path": "",
        "query_param": {}
      }
    }
  },
  "outsource_field_map": {},
  "sample_response": {
    "key": "output",
    "value": {
      "data": {
        "site": {
          "deleteAssets": [
            "035769fe-c54d-404a-b285-5a3430acb45a"
          ]
        }
      }
    }
  }
}
```

</details>

***

### **Edit an Asset**

#### **Description and Purpose**

The **Edit an Asset** action enables users to modify the properties of an existing asset. This is useful for keeping asset data current and accurate.

#### **Usage Stepper**

{% stepper %}
{% step %}
Add Lansweeper credentials to Autom Mate’s Vault.
{% endstep %}

{% step %}
Select the **Edit an Asset** action.
{% endstep %}

{% step %}
Provide the `Site ID`, `Asset Key`, and fields to be updated.
{% endstep %}

{% step %}
Execute the action to update the asset’s information.
{% endstep %}
{% endstepper %}

{% hint style="success" %}

#### **Inputs**

* **Site ID (Required)**: The unique identifier of the site containing the asset.
* **Asset Key (Required)**: The unique key identifying the asset.
  {% endhint %}

<details>

<summary>Sample Output</summary>

```json
{
  "application_id": "3a354946-2048-4c68-8269-81188c727cd9",
  "name": "Lansweeper Edit an Asset",
  "fetch_fields": {
    "inputs": [
      {
        "type": "string",
        "source": {
          "data": {
            "url": "/api/v2/graphql",
            "path": "data.me.profiles",
            "method": "POST",
            "body_param": {
              "data": {
                "query": "query { me { id profiles { id site { id name } } } }"
              },
              "content_type": "application/json"
            },
            "option_map": {
              "name": "*.site.name",
              "value": "*.site.id"
            },
            "response_search": {},
            "success_response_check": {
              "path": "data",
              "value": ":length"
            }
          },
          "type": "external"
        },
        "depends": "",
        "visible": true,
        "required": true,
        "identifier": "site",
        "placeholder": "",
        "display_name": "SITE",
        "default_value": ""
      },
      {
        "type": "string",
        "source": {
          "data": {
            "url": "/api/v2/graphql",
            "path": "data.site.assetResources.items",
            "method": "POST",
            "body_param": {
              "data": {
                "query": "query getAssetResources { site(id: \":site_id\") { assetResources( fields: [ \"assetCustom.stateName\", \"assetBasicInfo.ipAddress\", \"assetCustom.model\", \"processors.model\", \"processors.currentSpeed\", \"hardDisks.size\", \"memoryModules.size\", \"assetBasicInfo.mac\", \"assetBasicInfo.type\", \"operatingSystem.name\", \"assetCustom.purchaseDate\", \"assetBasicInfo.userName\", \"assetBasicInfo.lastSeen\", \"assetCustom.serialNumber\", \"assetBasicInfo.name\"]) { total items } } }"
              },
              "replace": {
                "site_id": "inputs:site"
              },
              "content_type": "application/json"
            },
            "option_map": {
              "name": "*.assetBasicInfo.name",
              "value": "*.key"
            },
            "query_param": {},
            "response_search": {},
            "success_response_check": {
              "path": "",
              "value": ":length"
            }
          },
          "type": "external"
        },
        "depends": "site",
        "visible": true,
        "required": true,
        "identifier": "asset",
        "placeholder": "",
        "display_name": "ASSET",
        "default_value": ""
      }
    ],
    "field_steps": [],
    "excludes": [],
    "only_last_children": true
  },
  "static_fields": [
    {
      "name": "branchOffice",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Branch Office"
    },
    {
      "name": "building",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Building"
    },
    {
      "name": "contact",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Contact"
    },
    {
      "name": "costCenter",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Cost Center"
    },
    {
      "name": "department",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Department"
    },
    {
      "name": "description",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Description"
    },
    {
      "name": "domain",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Domain"
    },
    {
      "name": "fqdn",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "FQDN"
    },
    {
      "name": "industry",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Industry"
    },
    {
      "name": "invoiceNumber",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Invoice Number"
    },
    {
      "name": "ipAddress",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "IP Address"
    },
    {
      "name": "location",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Location"
    },
    {
      "name": "manufacturer",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Manufacturer"
    },
    {
      "name": "model",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Model"
    },
    {
      "name": "name",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Asset Name"
    },
    {
      "name": "orderNumber",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "PO Number"
    },
    {
      "name": "owner",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Owner"
    },
    {
      "name": "serialNumber",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Serial Number"
    },
    {
      "name": "vendorName",
      "type": "string",
      "value": "",
      "description": "",
      "display_name": "Vendor Name"
    }
  ],
  "display_names": {},
  "input_value_options": {},
  "outsource_field_map": {},
  "sample_response": {
    "key": "output",
    "value": {
      "data": {
        "site": {
          "editAsset": {
            "assetBasicInfo": {
              "description": "My company's asset.",
              "name": "Asset 1",
              "ipAddress": "192.168.1.1",
              "domain": "test.com",
              "fqdn": "new.fqdn.com"
            },
            "assetCustom": {
              "branchOffice": "California",
              "building": "building",
              "department": "HR",
              "contact": "sarp bey",
              "location": "everest",
              "model": "zaaa",
              "serialNumber": "3131",
              "manufacturer": "caglayan",
              "orderNumber": "3169"
            },
            "cloudAssetCustom": {
              "industry": "My industry",
              "vendorName": "My vendor",
              "invoiceNumber": "invocei31",
              "owner": "onur",
              "costCenter": "thecenterofcost"
            }
          }
        }
      }
    }
  }
}
```

</details>

***

### **Get Sources of a Site**

#### **Description and Purpose**

The **Get Sources of a Site** action retrieves all data sources associated with a specific site, providing visibility into the site’s configuration.

#### **Usage Stepper**

{% stepper %}
{% step %}
Add Lansweeper credentials to Autom Mate’s Vault.
{% endstep %}

{% step %}
Select the **Get Sources of a Site** action.
{% endstep %}

{% step %}
Provide the required `Site ID`.
{% endstep %}

{% step %}
Execute the action to retrieve the sources for the specified site.
{% endstep %}
{% endstepper %}

{% hint style="success" %}

#### **Inputs**

* **Site ID (Required)**: The unique identifier of the site.
  {% endhint %}

<details>

<summary>Sample Output</summary>

```json
{
  "application_id": "3a354946-2048-4c68-8269-81188c727cd9",
  "name": "Lansweeper Get Sources of a Site",
  "fetch_fields": {
    "inputs": [],
    "field_steps": [],
    "excludes": [],
    "only_last_children": true
  },
  "static_fields": [],
  "display_names": {},
  "input_value_options": {
    "site_id": {
      "type": "string",
      "option_fill_type": "dynamic",
      "option_configuration": {
        "path": "/api/v2/graphql",
        "type": "select",
        "method": "POST",
        "field_map": {
          "path": "data.me.profiles",
          "value": "*.site.id",
          "display_name": "*.site.name"
        },
        "body_param": {
          "data": {
            "query": "query { me { id profiles { id site { id name } } } }"
          },
          "content_type": "application/json"
        },
        "field_path": "",
        "query_param": {}
      }
    }
  },
  "outsource_field_map": {},
  "sample_response": {
    "key": "output",
    "value": {
      "data": {
        "site": {
          "sources": {
            "total": 1,
            "pagination": {
              "limit": 500,
              "current": "c18377ad-b278-4967-80de-e105ed21a061",
              "next": "c18377ad-b278-4967-80de-e105ed21a061",
              "page": "FIRST"
            },
            "items": [
              {
                "id": "c18377ad-b278-4967-80de-e105ed21a061",
                "type": "IT",
                "state": {
                  "value": "SYNC",
                  "unlinkedOnDate": null,
                  "deletedOnDate": null,
                  "firstSyncCompletedOn": "2024-12-11T09:14:22.793Z"
                },
                "createdAt": "2024-12-11T09:08:28.426Z",
                "externalId": null
              }
            ]
          }
        }
      }
    }
  }
}
```

</details>

***

### **List All Vulnerabilities of a Site**

#### **Description and Purpose**

The **List All Vulnerabilities of a Site** action generates a detailed report of vulnerabilities detected at a specified site, enabling IT teams to prioritize and address security risks.

#### **Usage Stepper**

{% stepper %}
{% step %}
Add Lansweeper credentials to Autom Mate’s Vault.
{% endstep %}

{% step %}
Provide the required `Site ID`.
{% endstep %}

{% step %}
Execute the action to retrieve the list of vulnerabilities.
{% endstep %}
{% endstepper %}

{% hint style="success" %}

#### **Inputs**

* **Site ID (Required)**: The unique identifier of the site.
  {% endhint %}

#### Sample Output

{% file src="/files/j5ayfwVJQ9HHc8Td5tH8" %}

***

### **List Assets of a Site**

#### **Description and Purpose**

The **List Assets of a Site** action provides a comprehensive list of all assets associated with a particular site, simplifying inventory management and reporting.

#### **Usage Stepper**

{% stepper %}
{% step %}
Add Lansweeper credentials to Autom Mate’s Vault.
{% endstep %}

{% step %}
Select the **List Assets of a Site** action.
{% endstep %}

{% step %}
Provide the required `Site ID`.
{% endstep %}

{% step %}
Execute the action to retrieve the list of assets.
{% endstep %}
{% endstepper %}

{% hint style="success" %}

#### **Inputs**

* **Site ID (Required)**: The unique identifier of the site.
  {% endhint %}

<details>

<summary>Sample Output</summary>

```json
{
  "application_id": "3a354946-2048-4c68-8269-81188c727cd9",
  "name": "Lansweeper List Assets of a Site",
  "fetch_fields": {
    "inputs": [],
    "field_steps": [],
    "excludes": [],
    "only_last_children": true
  },
  "static_fields": [],
  "display_names": {},
  "input_value_options": {
    "site_id": {
      "type": "string",
      "option_fill_type": "dynamic",
      "option_configuration": {
        "path": "/api/v2/graphql",
        "type": "select",
        "method": "POST",
        "field_map": {
          "path": "data.me.profiles",
          "value": "*.site.id",
          "display_name": "*.site.name"
        },
        "body_param": {
          "data": {
            "query": "query { me { id profiles { id site { id name } } } }"
          },
          "content_type": "application/json"
        },
        "field_path": "",
        "query_param": {}
      }
    }
  },
  "outsource_field_map": {},
  "sample_response": {
    "key": "output",
    "value": {
      "data": {
        "site": {
          "assetResources": {
            "total": 27,
            "items": [
              {
                "assetBasicInfo": {
                  "name": "Intel Corporate 192.168.1.107",
                  "type": "Computer",
                  "ipAddress": "192.168.1.107",
                  "mac": "D8:F8:83:0F:9F:C4",
                  "lastSeen": "2024-12-14T09:32:20.643Z"
                },
                "key": "NC1Bc3NldC1jMTgzNzdhZC1iMjc4LTQ5NjctODBkZS1lMTA1ZWQyMWEwNjE=",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "CHONGQING FUGUI ELECTRONICS CO.,LTD. 192.168.1.106",
                  "type": "Computer",
                  "ipAddress": "192.168.1.106",
                  "mac": "74:12:B3:4F:F7:EF",
                  "lastSeen": "2024-12-12T09:32:18.670Z"
                },
                "key": "NS1Bc3NldC1jMTgzNzdhZC1iMjc4LTQ5NjctODBkZS1lMTA1ZWQyMWEwNjE=",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "Intel Corporate 192.168.1.113",
                  "type": "Computer",
                  "ipAddress": "192.168.1.113",
                  "mac": "A4:6B:B6:D3:79:3F",
                  "lastSeen": "2024-12-14T09:32:20.550Z"
                },
                "key": "Ni1Bc3NldC1jMTgzNzdhZC1iMjc4LTQ5NjctODBkZS1lMTA1ZWQyMWEwNjE=",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "Ipad/Iphone 192.168.1.117",
                  "type": "IOS",
                  "ipAddress": "192.168.1.117",
                  "mac": "22:00:E9:AC:FF:24",
                  "lastSeen": "2024-12-14T09:32:20.420Z"
                },
                "key": "MTItQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "Ipad/Iphone 192.168.1.108",
                  "type": "IOS",
                  "ipAddress": "192.168.1.108",
                  "mac": "D2:36:A7:8E:9B:D2",
                  "lastSeen": "2024-12-12T09:32:19.593Z"
                },
                "key": "MTUtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-13T09:32:20.963Z",
                  "name": "Ipad/Iphone 192.168.1.105",
                  "type": "IOS",
                  "ipAddress": "192.168.1.105",
                  "mac": "8A:AF:FF:1B:25:33"
                },
                "key": "MjMtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "Intel Corporate 192.168.1.102",
                  "type": "Laptop",
                  "ipAddress": "192.168.1.102",
                  "mac": "70:9C:D1:F3:6B:7D",
                  "lastSeen": "2024-12-14T09:32:20.437Z"
                },
                "key": "MTQtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-11T09:13:15.730Z",
                  "name": "Default location",
                  "type": "Location"
                },
                "key": "My1Bc3NldC1jMTgzNzdhZC1iMjc4LTQ5NjctODBkZS1lMTA1ZWQyMWEwNjE=",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-13T09:32:27.130Z",
                  "name": "192.168.1.112",
                  "type": "Mobile",
                  "ipAddress": "192.168.1.112",
                  "mac": "DE:F4:FF:85:64:69"
                },
                "key": "MjItQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-14T09:32:29.350Z",
                  "name": "192.168.1.100",
                  "type": "Mobile",
                  "ipAddress": "192.168.1.100",
                  "mac": "62:02:EB:E7:C3:3F"
                },
                "key": "MjYtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-12T09:16:05.340Z",
                  "name": "Dell Inc. GV5TVJ3",
                  "type": "Monitor"
                },
                "key": "Mi1Bc3NldC1jMTgzNzdhZC1iMjc4LTQ5NjctODBkZS1lMTA1ZWQyMWEwNjE=",
                "assetCustom": {
                  "stateName": "Active",
                  "model": "Dell P2423",
                  "purchaseDate": "2023-02-21T00:00:00.000Z",
                  "serialNumber": "GV5TVJ3"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-13T19:29:19.800Z",
                  "name": "Philips 10294",
                  "type": "Monitor"
                },
                "key": "MjQtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active",
                  "model": "PHL 242V8",
                  "serialNumber": "10294"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-13T12:24:24.217Z",
                  "name": "Dell Inc. CW5DJ43",
                  "type": "Monitor"
                },
                "key": "MjctQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active",
                  "model": "DELL P2419H",
                  "serialNumber": "CW5DJ43"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "192.168.1.110",
                  "type": "Network device",
                  "ipAddress": "192.168.1.110",
                  "mac": "BA:BE:F3:00:77:FE",
                  "lastSeen": "2024-12-13T09:32:17.117Z"
                },
                "key": "MTEtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "192.168.1.109",
                  "type": "Network device",
                  "ipAddress": "192.168.1.109",
                  "mac": "52:0F:4E:B7:6F:7A",
                  "lastSeen": "2024-12-11T09:16:14.093Z"
                },
                "key": "MTYtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "192.168.1.111",
                  "type": "Network device",
                  "ipAddress": "192.168.1.111",
                  "mac": "B2:5D:62:90:12:AD"
                },
                "key": "MTctQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "192.168.1.115",
                  "type": "Network device",
                  "ipAddress": "192.168.1.115",
                  "mac": "6E:D7:C5:A7:72:79",
                  "lastSeen": "2024-12-13T09:32:27.033Z"
                },
                "key": "MjEtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "Huawei IGD",
                  "type": "Router",
                  "ipAddress": "192.168.1.1",
                  "mac": "20:53:83:EB:76:39",
                  "lastSeen": "2024-12-14T09:31:55.203Z"
                },
                "key": "MTAtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active",
                  "model": "Huawei EchoLife Series",
                  "serialNumber": "205383EB7631"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "Samsung 192.168.1.114",
                  "type": "Smart TV",
                  "ipAddress": "192.168.1.114",
                  "mac": "A0:D0:5B:58:D1:DC",
                  "lastSeen": "2024-12-14T09:32:20.667Z"
                },
                "key": "OS1Bc3NldC1jMTgzNzdhZC1iMjc4LTQ5NjctODBkZS1lMTA1ZWQyMWEwNjE=",
                "assetCustom": {
                  "stateName": "Active",
                  "model": "QE65QN90BATXXH"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-11T09:16:38.680Z",
                  "name": "Sign in to Outlook",
                  "type": "Webserver",
                  "ipAddress": "52.97.201.194"
                },
                "key": "MTgtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-11T09:17:52.333Z",
                  "name": "ec-in-f84.1e100.net",
                  "type": "Webserver",
                  "ipAddress": "74.125.128.84"
                },
                "key": "MjAtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active",
                  "model": "gws"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-11T09:17:41.970Z",
                  "name": "104.21.25.95",
                  "type": "Webserver",
                  "ipAddress": "104.21.25.95"
                },
                "key": "MTktQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active",
                  "model": "cloudflare"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-12T18:03:26.267Z",
                  "name": "sof02s44-in-f3.1e100.net",
                  "type": "Webserver",
                  "ipAddress": "142.250.187.99"
                },
                "key": "MjUtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active",
                  "model": "gws"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "192.168.1.103",
                  "type": "Wifi Extender",
                  "ipAddress": "192.168.1.103",
                  "mac": "F2:EF:5F:FE:66:C7",
                  "lastSeen": "2024-12-14T09:32:20.437Z"
                },
                "key": "Ny1Bc3NldC1jMTgzNzdhZC1iMjc4LTQ5NjctODBkZS1lMTA1ZWQyMWEwNjE=",
                "assetCustom": {
                  "stateName": "Active",
                  "model": "Powerline AV600"
                }
              },
              {
                "assetBasicInfo": {
                  "lastSeen": "2024-12-14T09:30:27.767Z",
                  "userName": "ysfrd",
                  "name": "ERDEMSAKÕN",
                  "type": "Windows",
                  "ipAddress": "192.168.1.116",
                  "mac": "F0:77:C3:07:00:A3"
                },
                "key": "MS1Bc3NldC1jMTgzNzdhZC1iMjc4LTQ5NjctODBkZS1lMTA1ZWQyMWEwNjE=",
                "assetCustom": {
                  "stateName": "Active",
                  "model": "GF63 Thin 10SC",
                  "serialNumber": "9S716R512263ZL5000111"
                },
                "hardDisks": [
                  {
                    "size": 512105938944
                  }
                ],
                "memoryModules": [
                  {
                    "size": 8589934592
                  },
                  {
                    "size": 8589934592
                  }
                ],
                "operatingSystem": {
                  "caption": "Microsoft Windows 11 Pro",
                  "name": "Microsoft Windows 11 Pro"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "AUMT-ODOGUCU2",
                  "type": "Windows",
                  "ipAddress": "192.168.1.101",
                  "mac": "84:14:4D:F3:30:E0"
                },
                "key": "OC1Bc3NldC1jMTgzNzdhZC1iMjc4LTQ5NjctODBkZS1lMTA1ZWQyMWEwNjE=",
                "assetCustom": {
                  "stateName": "Active"
                }
              },
              {
                "assetBasicInfo": {
                  "name": "ACKLL",
                  "type": "Windows",
                  "ipAddress": "192.168.1.104",
                  "mac": "B8:1E:A4:92:77:47",
                  "lastSeen": "2024-12-11T10:03:42.433Z"
                },
                "key": "MTMtQXNzZXQtYzE4Mzc3YWQtYjI3OC00OTY3LTgwZGUtZTEwNWVkMjFhMDYx",
                "assetCustom": {
                  "stateName": "Active",
                  "model": "21JT"
                }
              }
            ]
          }
        }
      }
    }
  }
}
```

</details>

***

### **List Softwares of an Asset**

#### **Description and Purpose**

The **List Softwares of an Asset** action retrieves a list of all software installed on a specific asset. This action helps ensure compliance and accurate software inventory.

#### **Usage Stepper**

{% stepper %}
{% step %}
Add Lansweeper credentials to Autom Mate’s Vault.
{% endstep %}

{% step %}
Select the **List Softwares of an Asset** action.
{% endstep %}

{% step %}
Provide the required `Site ID` and `Asset Key`.
{% endstep %}

{% step %}
Execute the action to retrieve the list of software installed on the asset.
{% endstep %}
{% endstepper %}

{% hint style="success" %}

#### **Inputs**

* **Site ID (Required)**: The unique identifier of the site.
* **Asset Key (Required)**: The unique key identifying the asset.
  {% endhint %}

<details>

<summary>Sample Output</summary>

```json
{
  "application_id": "3a354946-2048-4c68-8269-81188c727cd9",
  "name": "Lansweeper List Softwares of an Asset",
  "fetch_fields": {
    "inputs": [],
    "field_steps": [],
    "excludes": [],
    "only_last_children": true
  },
  "static_fields": [],
  "display_names": {},
  "input_value_options": {
    "site_id": {
      "type": "string",
      "option_fill_type": "dynamic",
      "option_configuration": {
        "path": "/api/v2/graphql",
        "type": "select",
        "method": "POST",
        "field_map": {
          "path": "data.me.profiles",
          "value": "*.site.id",
          "display_name": "*.site.name"
        },
        "body_param": {
          "data": {
            "query": "query { me { id profiles { id site { id name } } } }"
          },
          "content_type": "application/json"
        },
        "field_path": "",
        "query_param": {}
      }
    }
  },
  "outsource_field_map": {},
  "sample_response": {
    "key": "output",
    "value": {
      "data": {
        "site": {
          "softwares": {
            "total": 55,
            "items": [
              {
                "installDate": "2024-11-06T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "PhysX System Software",
                "publisher": "Nvidia",
                "operatingSystem": "Windows",
                "version": "9.23.1019",
                "release": "9.23.1019",
                "unspsc": "43232001",
                "category": "Action Games",
                "cpe": "cpe:2.3:a:nvidia:physx_system_software:9.23.1019:*:*:*:-:windows:*:*",
                "marketVersion": "9"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Notepad++",
                "publisher": "Notepad++ Team",
                "operatingSystem": "Windows",
                "version": "8.7.1",
                "release": "8.7.1 x64",
                "architecture": "x64",
                "unspsc": "43232104",
                "category": "Word Processing",
                "cpe": "cpe:2.3:a:notepad-plus-plus:notepad\\+\\+:8.7.1:*:*:*:-:windows:x64:*",
                "marketVersion": "8"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "AnyDesk",
                "publisher": "philandro Software",
                "operatingSystem": "Windows",
                "version": "8.1.0",
                "release": "8.1.0",
                "unspsc": "43232901",
                "category": "Access",
                "cpe": "cpe:2.3:a:anydesk:anydesk:8.1.0:*:*:*:-:windows:*:*",
                "marketVersion": "8"
              },
              {
                "installDate": "2024-11-05T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": true,
                "name": "MySQL Workbench CE",
                "publisher": "Oracle",
                "operatingSystem": "Windows",
                "version": "8.0.40",
                "release": "8.0.40",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:oracle:mysql_workbench_ce:8.0:*:*:*:-:windows:*:*",
                "marketVersion": "8"
              },
              {
                "installDate": "2024-12-11T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": true,
                "name": "IIS Express",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "8.0.1557",
                "release": "8.0.1557",
                "unspsc": "43232701",
                "category": "Application Server",
                "cpe": "cpe:2.3:a:microsoft:iis:8.0:*:*:*:-:windows:*:*",
                "marketVersion": "8"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "WinRAR",
                "publisher": "WinRAR",
                "operatingSystem": "Windows",
                "version": "7.01.0",
                "release": "7.01.0 x64",
                "architecture": "x64",
                "unspsc": "43233403",
                "category": "Data Compression",
                "cpe": "cpe:2.3:a:rarlab:winrar:7.01:*:*:*:-:windows:x64:*",
                "marketVersion": "7"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": true,
                "msi": false,
                "name": "Zoom Workplace",
                "publisher": "Zoom",
                "operatingSystem": "Windows",
                "version": "6.2.11 (50939)",
                "release": "6.2.11 (50939)",
                "marketVersion": "6"
              },
              {
                "installDate": "2024-12-13T00:00:00.000Z",
                "lastChanged": "2024-12-13T19:29:19.243Z",
                "currentUser": false,
                "msi": false,
                "name": "Graphics Driver",
                "publisher": "Nvidia",
                "operatingSystem": "Windows",
                "version": "566.36",
                "release": "566.36",
                "unspsc": "43233407",
                "category": "Graphics Card Driver",
                "cpe": "cpe:2.3:a:nvidia:gpu_display_driver:566.36:*:*:*:-:windows:*:*",
                "marketVersion": "566"
              },
              {
                "installDate": "2024-11-05T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": true,
                "name": "Update Health Tools",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "5.72.0.0",
                "release": "5.72.0.0",
                "unspsc": "43233400",
                "category": "Utility",
                "cpe": "cpe:none",
                "marketVersion": "5"
              },
              {
                "installDate": "2024-11-05T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Lightshot",
                "publisher": "Skillbrains",
                "operatingSystem": "Windows",
                "version": "5.5.0.7",
                "release": "5.5.0.7",
                "cpe": "cpe:none",
                "marketVersion": "5"
              },
              {
                "installDate": "2024-11-22T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": true,
                "msi": false,
                "name": "Slack",
                "publisher": "Slack",
                "operatingSystem": "Windows",
                "version": "4.41.98",
                "release": "4.41.98",
                "unspsc": "43233504",
                "category": "Instant Messaging",
                "cpe": "cpe:none",
                "marketVersion": "4"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "OBS Studio",
                "publisher": "OBS Project",
                "operatingSystem": "Windows",
                "version": "30.2.3",
                "release": "30.2.3",
                "unspsc": "43232103",
                "category": "Video Creation and Editing",
                "cpe": "cpe:none",
                "marketVersion": "30"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "FileZilla",
                "publisher": "Tim Kosse",
                "operatingSystem": "Windows",
                "version": "3.68.1",
                "release": "3.68.1",
                "unspsc": "43233405",
                "category": "Device Drivers or System",
                "cpe": "cpe:2.3:a:filezilla-project:filezilla:3.68.1:*:*:*:-:windows:*:*",
                "marketVersion": "3"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "OneDrive",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "24.221.1103.0003",
                "release": "24.221.1103.0003",
                "unspsc": "43232202",
                "category": "Document Management",
                "cpe": "cpe:2.3:a:microsoft:onedrive:24.221.1103.0003:*:*:*:-:windows:*:*",
                "marketVersion": "24"
              },
              {
                "installDate": "2024-11-10T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": true,
                "msi": true,
                "name": "Paradox Launcher v2",
                "publisher": "Paradox Interactive",
                "operatingSystem": "Windows",
                "version": "2.4.0",
                "release": "2.4.0",
                "unspsc": "43232004",
                "category": "Family",
                "cpe": "cpe:none",
                "marketVersion": "2"
              },
              {
                "installDate": "2024-11-12T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": true,
                "name": "Agent",
                "publisher": "Vanta",
                "operatingSystem": "Windows",
                "version": "2.11.0",
                "release": "2.11.0",
                "marketVersion": "2"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Steam",
                "publisher": "Valve",
                "operatingSystem": "Windows",
                "version": "2.10.91.91",
                "release": "2.10.91.91",
                "unspsc": "43232000",
                "category": "Games Management",
                "cpe": "cpe:2.3:a:valve:steam:2.10.91.91:*:*:*:-:windows:*:*",
                "marketVersion": "2"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Microsoft 365",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "16.0.18227.20152",
                "release": "16.0.18227.20152 Business en-us",
                "unspsc": "43231513",
                "category": "Office Suite",
                "cpe": "cpe:2.3:a:microsoft:365_apps:16.0.18227.20152:*:*:en-us:-:windows:*:*",
                "marketVersion": "16",
                "edition": "Business",
                "language": "en-us"
              },
              {
                "installDate": "2024-12-11T00:00:00.000Z",
                "lastChanged": "2024-12-12T05:48:35.047Z",
                "currentUser": false,
                "msi": true,
                "name": "SQL Server LocalDB",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "16.0.1000.6",
                "release": "2022 16.0.1000.6",
                "unspsc": "43232304",
                "category": "Database",
                "cpe": "cpe:none",
                "marketVersion": "2022"
              },
              {
                "lastChanged": "2024-12-13T19:29:19.243Z",
                "currentUser": false,
                "msi": false,
                "name": "Visual C++ Redistributable",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "14.42.34433.0",
                "release": "2015-2022 14.42.34433.0 x64",
                "architecture": "x64",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_c\\+\\+:2015-2022:*:*:*:redistributable_package:windows:x64:*",
                "marketVersion": "2015-2022"
              },
              {
                "lastChanged": "2024-12-13T19:29:19.243Z",
                "currentUser": false,
                "msi": false,
                "name": "Visual C++ Redistributable",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "14.42.34433.0",
                "release": "2015-2022 14.42.34433.0 x86",
                "architecture": "x86",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_c\\+\\+:2015-2022:*:*:*:redistributable_package:windows:x86:*",
                "marketVersion": "2015-2022"
              },
              {
                "installDate": "2024-12-13T00:00:00.000Z",
                "lastChanged": "2024-12-13T12:24:23.130Z",
                "currentUser": false,
                "msi": false,
                "name": "Google Chrome",
                "publisher": "Google",
                "operatingSystem": "Windows",
                "version": "131.0.6778.140",
                "release": "131.0.6778.140",
                "unspsc": "43232705",
                "category": "Internet Browser",
                "cpe": "cpe:2.3:a:google:chrome:131.0.6778.140:*:*:*:-:windows:*:*",
                "marketVersion": "131"
              },
              {
                "installDate": "2024-12-13T00:00:00.000Z",
                "lastChanged": "2024-12-13T12:24:23.130Z",
                "currentUser": false,
                "msi": false,
                "name": "Edge",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "131.0.2903.99",
                "release": "131.0.2903.99",
                "unspsc": "43232705",
                "category": "Internet Browser",
                "cpe": "cpe:2.3:a:microsoft:edge:131.0.2903.99:*:*:*:-:windows:*:*",
                "marketVersion": "131"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "EA app",
                "publisher": "Electronic Arts",
                "operatingSystem": "Windows",
                "version": "13.335.0.5848",
                "release": "13.335.0.5848",
                "unspsc": "43232003",
                "category": "Sports Games",
                "cpe": "cpe:none",
                "marketVersion": "13"
              },
              {
                "installDate": "2024-12-11T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": true,
                "name": "SQL Server Express LocalDB",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "12.3.6433.1",
                "release": "2014 12.3.6433.1",
                "unspsc": "43232304",
                "category": "Database",
                "cpe": "cpe:none",
                "marketVersion": "2014"
              },
              {
                "installDate": "2024-12-11T00:00:00.000Z",
                "lastChanged": "2024-12-12T05:48:35.047Z",
                "currentUser": false,
                "msi": false,
                "name": "Lansweeper",
                "publisher": "Lansweeper",
                "operatingSystem": "Windows",
                "version": "12.1",
                "release": "12.1",
                "unspsc": "43232801",
                "category": "Network Monitoring",
                "cpe": "cpe:2.3:a:lansweeper:lansweeper:12.1:*:*:*:-:windows:*:*",
                "marketVersion": "12"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Visual C++ Redistributable",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "12.0.40664.0",
                "release": "2013 12.0.40664.0 x64",
                "architecture": "x64",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_c\\+\\+:2013:*:*:*:redistributable_package:windows:x64:*",
                "marketVersion": "2013"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Visual C++ Redistributable",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "12.0.40664.0",
                "release": "2013 12.0.40664.0 x86",
                "architecture": "x86",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_c\\+\\+:2013:*:*:*:redistributable_package:windows:x86:*",
                "marketVersion": "2013"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Visual C++ Redistributable",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "12.0.30501.0",
                "release": "2013 12.0.30501.0 x64",
                "architecture": "x64",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_c\\+\\+:2013:*:*:*:redistributable_package:windows:x64:*",
                "marketVersion": "2013"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Visual C++ Redistributable",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "12.0.30501.0",
                "release": "2013 12.0.30501.0 x86",
                "architecture": "x86",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_c\\+\\+:2013:*:*:*:redistributable_package:windows:x86:*",
                "marketVersion": "2013"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": true,
                "msi": false,
                "name": "Opera",
                "publisher": "Opera",
                "operatingSystem": "Windows",
                "version": "114.0.5282.235",
                "release": "114.0.5282.235",
                "cpe": "cpe:2.3:a:opera:opera_browser:114.0.5282.235:*:*:*:-:windows:*:*",
                "marketVersion": "114"
              },
              {
                "installDate": "2024-12-11T00:00:00.000Z",
                "lastChanged": "2024-12-12T05:48:35.047Z",
                "currentUser": false,
                "msi": true,
                "name": "SQL Server Native Client",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "11.4.7001.0",
                "release": "2012 11.4.7001.0",
                "unspsc": "43232304",
                "category": "Database",
                "cpe": "cpe:none",
                "marketVersion": "2012"
              },
              {
                "installDate": "2024-12-11T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": true,
                "msi": false,
                "name": "Postman",
                "publisher": "Postman",
                "operatingSystem": "Windows",
                "version": "11.22.0",
                "release": "11.22.0 x64",
                "architecture": "x64",
                "unspsc": "43232406",
                "category": "Program Testing",
                "cpe": "cpe:2.3:a:getpostman:postman:11.22.0:*:*:*:-:windows:x64:*",
                "marketVersion": "11"
              },
              {
                "lastChanged": "2024-12-13T12:24:23.130Z",
                "currentUser": false,
                "msi": false,
                "name": "Internet Explorer",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "11.1882.26100.0",
                "release": "11.1882.26100.0",
                "unspsc": "43232705",
                "category": "Internet Browser",
                "cpe": "cpe:2.3:a:microsoft:internet_explorer:11:*:*:*:-:windows:*:*",
                "marketVersion": "11"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Visual C++ Redistributable",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "11.0.61030.0",
                "release": "2012 11.0.61030.0 x86",
                "architecture": "x86",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_c\\+\\+:2012:*:*:*:redistributable_package:windows:x86:*",
                "marketVersion": "2012"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Visual C++ Redistributable",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "11.0.60610.1",
                "release": "2012 11.0.60610.1 x86",
                "architecture": "x86",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_c\\+\\+:2012:*:*:*:redistributable_package:windows:x86:*",
                "marketVersion": "2012"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Visual C++ Redistributable",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "11.0.60610.1",
                "release": "2012 11.0.60610.1 x64",
                "architecture": "x64",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_c\\+\\+:2012:*:*:*:redistributable_package:windows:x64:*",
                "marketVersion": "2012"
              },
              {
                "installDate": "2024-12-11T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:39:06.430Z",
                "currentUser": false,
                "msi": false,
                "name": "app",
                "publisher": "Nvidia",
                "operatingSystem": "Windows",
                "version": "11.0.1.184",
                "release": "11.0.1.184",
                "marketVersion": "11"
              },
              {
                "installDate": "2024-11-10T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": true,
                "name": "Visual C++ Redistributable",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "10.0.40219",
                "release": "2010 10.0.40219 x86",
                "architecture": "x86",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_c\\+\\+:2010:*:*:*:redistributable_package:windows:x86:*",
                "marketVersion": "2010"
              },
              {
                "installDate": "2024-11-10T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": true,
                "name": "Visual C++ Redistributable",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "10.0.40219",
                "release": "2010 10.0.40219 x64",
                "architecture": "x64",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_c\\+\\+:2010:*:*:*:redistributable_package:windows:x64:*",
                "marketVersion": "2010"
              },
              {
                "installDate": "2024-12-13T00:00:00.000Z",
                "lastChanged": "2024-12-13T19:29:19.243Z",
                "currentUser": true,
                "msi": false,
                "name": "Visual Studio Code",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "1.96.0",
                "release": "1.96.0",
                "unspsc": "43232402",
                "category": "Development Environment",
                "cpe": "cpe:2.3:a:microsoft:visual_studio_code:1.96.0:*:*:*:-:windows:*:*",
                "marketVersion": "1"
              },
              {
                "installDate": "2024-11-05T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": true,
                "name": "mRemoteNG",
                "publisher": "Next Generation Software",
                "operatingSystem": "Windows",
                "version": "1.76.20.24615",
                "release": "1.76.20.24615",
                "unspsc": "43232409",
                "category": "Compiler and Decompiler",
                "cpe": "cpe:none",
                "marketVersion": "1"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Npcap",
                "publisher": "Nmap Project",
                "operatingSystem": "Windows",
                "version": "1.55",
                "release": "1.55",
                "unspsc": "43232609",
                "category": "Library",
                "cpe": "cpe:2.3:a:nmap:npcap:1.55:*:*:*:-:windows:*:*",
                "marketVersion": "1"
              },
              {
                "installDate": "2024-12-11T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:39:06.430Z",
                "currentUser": false,
                "msi": false,
                "name": "FrameView SDK",
                "publisher": "Nvidia",
                "operatingSystem": "Windows",
                "version": "1.4.10624.35034762",
                "release": "1.4.10624.35034762",
                "unspsc": "43232409",
                "category": "Compiler and Decompiler",
                "cpe": "cpe:none",
                "marketVersion": "1"
              },
              {
                "installDate": "2024-11-12T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": true,
                "msi": true,
                "name": "Teams Meeting Add-in",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "version": "1.24.28402",
                "release": "1.24.28402",
                "unspsc": "43233502",
                "category": "Videoconferencing",
                "cpe": "cpe:none",
                "marketVersion": "1"
              },
              {
                "installDate": "2024-12-11T00:00:00.000Z",
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": true,
                "msi": false,
                "name": "Spotify",
                "publisher": "Spotify",
                "operatingSystem": "Windows",
                "version": "1.2.52.442.g01893f92",
                "release": "1.2.52.442.g01893f92",
                "unspsc": "43233419",
                "category": "Multimedia Stacks",
                "cpe": "cpe:2.3:a:spotify:spotify:1.2.52.442.g01893f92:*:*:*:-:windows:*:*"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "EA SPORTS FC 25",
                "publisher": "Electronic Arts",
                "operatingSystem": "Windows",
                "version": "1.0.116.40849",
                "release": "1.0.116.40849",
                "marketVersion": "1"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Riot Vanguard",
                "publisher": "Riot Games",
                "operatingSystem": "Windows",
                "cpe": "cpe:none"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Half-Life 2",
                "publisher": "Valve",
                "operatingSystem": "Windows",
                "unspsc": "43232001",
                "category": "Action Games",
                "cpe": "cpe:none"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Europa Universalis IV",
                "publisher": "Paradox Development Studio",
                "operatingSystem": "Windows"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "Marvel Rivals",
                "publisher": "Netease",
                "operatingSystem": "Windows"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "IIS Express Application Compatibility Database",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "release": "x64",
                "architecture": "x64",
                "unspsc": "43232304",
                "category": "Database",
                "cpe": "cpe:none"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": false,
                "msi": false,
                "name": "IIS Express Application Compatibility Database",
                "publisher": "Microsoft",
                "operatingSystem": "Windows",
                "release": "x86",
                "architecture": "x86",
                "unspsc": "43232304",
                "category": "Database",
                "cpe": "cpe:none"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": true,
                "msi": false,
                "name": "League of Legends",
                "publisher": "Riot Games",
                "operatingSystem": "Windows",
                "cpe": "cpe:none"
              },
              {
                "lastChanged": "2024-12-11T09:13:12.367Z",
                "currentUser": true,
                "msi": false,
                "name": "Riot Client",
                "publisher": "Riot Games",
                "operatingSystem": "Windows"
              }
            ]
          }
        }
      }
    }
  }
}
```

</details>

***

### **Scan a Source**

#### **Description and Purpose**

The **Scan a Source** action initiates a scan of a specified source, providing updated data for assets, vulnerabilities, or other configurations.

#### **Usage Stepper**

{% stepper %}
{% step %}
Add Lansweeper credentials to Autom Mate’s Vault.
{% endstep %}

{% step %}
Select the **Scan a Source** action.
{% endstep %}

{% step %}
Provide the required `Site ID` and `Source ID`.
{% endstep %}

{% step %}
Execute the action to initiate the scan.
{% endstep %}
{% endstepper %}

{% hint style="success" %}

#### **Inputs**

* **Site ID (Required)**: The unique identifier of the site.
* **Source ID (Required)**: The unique identifier of the source to scan.
  {% endhint %}

<details>

<summary>Sample Output</summary>

```json
{
  "application_id": "3a354946-2048-4c68-8269-81188c727cd9",
  "name": "Lansweeper Scan a Source",
  "fetch_fields": {
    "inputs": [],
    "field_steps": [],
    "excludes": [],
    "only_last_children": true
  },
  "static_fields": [],
  "display_names": {},
  "input_value_options": {
    "site_id": {
      "type": "string",
      "option_fill_type": "dynamic",
      "option_configuration": {
        "path": "/api/v2/graphql",
        "type": "select",
        "method": "POST",
        "field_map": {
          "path": "data.me.profiles",
          "value": "*.site.id",
          "display_name": "*.site.name"
        },
        "body_param": {
          "data": {
            "query": "query { me { id profiles { id site { id name } } } }"
          },
          "content_type": "application/json"
        },
        "field_path": "",
        "query_param": {}
      }
    }
  },
  "outsource_field_map": {},
  "sample_response": {
    "key": "output",
    "value": {
      "data": {
        "site": {
          "source": {
            "scanNow": "c18377ad-b278-4967-80de-e105ed21a061"
          }
        }
      }
    }
  }
}
```

</details>

***

### **View Sites**

#### **Description and Purpose**

The **View Sites** action retrieves a list of all sites in Lansweeper, offering a high-level overview of the organization’s IT environments.

#### **Usage Stepper**

{% stepper %}
{% step %}
Add Lansweeper credentials to Autom Mate’s Vault.
{% endstep %}

{% step %}
Select the **View Sites** action.
{% endstep %}

{% step %}
Execute the action to retrieve the list of all sites.
{% endstep %}
{% endstepper %}

{% hint style="success" %}

#### **Inputs**

* No inputs required.
  {% endhint %}

<details>

<summary>Sample Output</summary>

```json
{
  "application_id": "3a354946-2048-4c68-8269-81188c727cd9",
  "name": "Lansweeper View Sites",
  "fetch_fields": {
    "inputs": [],
    "field_steps": [],
    "excludes": [],
    "only_last_children": true
  },
  "static_fields": [],
  "display_names": {},
  "input_value_options": {},
  "outsource_field_map": {},
  "sample_response": {
    "key": "output",
    "value": {
      "data": {
        "me": {
          "id": "auth0|6759566c6347bff87fb82dbb",
          "profiles": [
            {
              "id": "4dbb5409-ef24-496e-93e5-ca5af8dfe3f2",
              "site": {
                "id": "a59e5674-c6cd-4045-93f2-49f1a919c1a7",
                "name": "erdemstest2"
              }
            },
            {
              "id": "413364ec-cf5d-4312-8f68-3ba7a9db0ff8",
              "site": {
                "id": "348087e9-e2d2-4a0c-a2da-14296475bf76",
                "name": "v6jiw6gy"
              }
            }
          ]
        }
      }
    }
  }
}
```

</details>

***

### **View Users of a Site**

#### **Description and Purpose**

The **View Users of a Site** action retrieves a list of all users associated with a specific site. This is useful for managing user access and roles.

#### **Usage Stepper**

{% stepper %}
{% step %}
Add Lansweeper credentials to Autom Mate’s Vault.
{% endstep %}

{% step %}
Select the **View Users of a Site** action.
{% endstep %}

{% step %}
Provide the required `Site ID`.
{% endstep %}

{% step %}
Execute the action to retrieve the list of users.
{% endstep %}
{% endstepper %}

{% hint style="success" %}

#### **Inputs**

* **Site ID (Required)**: The unique identifier of the site.
  {% endhint %}

<details>

<summary>Sample Output</summary>

```json
{
  "application_id": "3a354946-2048-4c68-8269-81188c727cd9",
  "name": "Lansweeper View Users of a Site",
  "fetch_fields": {
    "inputs": [],
    "field_steps": [],
    "excludes": [],
    "only_last_children": true
  },
  "static_fields": [],
  "display_names": {},
  "input_value_options": {
    "site_id": {
      "type": "string",
      "option_fill_type": "dynamic",
      "option_configuration": {
        "path": "/api/v2/graphql",
        "type": "select",
        "method": "POST",
        "field_map": {
          "path": "data.me.profiles",
          "value": "*.site.id",
          "display_name": "*.site.name"
        },
        "body_param": {
          "data": {
            "query": "query { me { id profiles { id site { id name } } } }"
          },
          "content_type": "application/json"
        },
        "field_path": "",
        "query_param": {}
      }
    }
  },
  "outsource_field_map": {},
  "sample_response": {
    "key": "output",
    "value": {
      "data": {
        "site": {
          "accounts": [
            {
              "username": "ysfrdmskn",
              "email": "ysfrdmskn@gmail.com",
              "status": "enabled",
              "createdAt": "2024-12-11T09:08:00.713Z",
              "joinedAt": "2024-12-11T09:08:26.525Z",
              "lastTimeAccess": "2024-12-14T10:01:41.538Z"
            }
          ]
        }
      }
    }
  }
}
```

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.autommate.com/userguide/libraries/integration/lansweeper.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
