cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Obi_1_Cinobi
Lansweeper Tech Support
Lansweeper Tech Support

Issue

When running the Service Graph Connector for Lansweeper on a ServiceNow instance, the connector no longer returns any assets.

After renewing an expired OAuth token, connectivity to Lansweeper Cloud is successfully restored. However, all API calls that rely on the authorizedSites query return an empty response:

{
  "data": {
    "authorizedSites": {
      "sites": []
    }
  }
}

The connector logs show the following error:

ERROR: "No sites allowed"

Root Cause

The API client used by the ServiceNow integration is not authorized for any Lansweeper sites.
Even though authentication succeeds, the Data API will not return assets unless at least one site is explicitly assigned to the API client. 

Resolution

Verify that the API client used by the ServiceNow integration has access to at least one Lansweeper site.

Step 1: Verify site authorization for the API client

  1. Log in to Lansweeper Cloud.
  2. Navigate to:
    Configuration → API Client Management
  3. Click the name of the API client used by the ServiceNow integration.
  4. Scroll down to the Sites section.
  5. Confirm that the correct site is listed.
    • If no site is listed, click Add New Sites.
    • Select the appropriate site(s) and save the changes.
⚠️ The Data API will return an empty authorizedSites response if no sites are assigned.
Add new site.png

Step 2: Validate API access manually (recommended)

To rule out integration-side issues, test the API client directly using a third-party API tool such as Postman.
  1. Use the same OAuth client credentials as configured in ServiceNow.
  2. Perform a test query against the Lansweeper Data API.
  3. Confirm that site and asset data is returned as expected.
Detailed instructions for constructing a test API call can be found here:
https://developer.lansweeper.com/docs/data-api/get-started/quickstart
Was this article helpful? Yes No
No ratings

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now
Version history
Last update:
Tuesday
Updated by: