Workspace ONE Intelligence Report Download

This script leverages Workspace ONE Intelligence API to automate the process of getting the latest data from Workspace ONE Intelligence, downloading, and saving the report as CSV. Please see more information in the readme.md file for details.

Overview

Author: Targoon Siripanichpong

Email: tsiripanichpon@vmware.com

Date Created: 3/7/2023

Platform: Python, Powershell

Purpose

Leveraging Workspace ONE Intelligence API to automate the process of getting the latest data from Workspace ONE Intelligence, downloading, and saving the report as CSV.

Requirements

  1. Generate Workspace ONE Intelligence Service Account (getting client ID and client sercret)
  2. Create a report and share it with the Service Account
  3. Obtain the report ID

How to execute the script

Execute the script using the following parameters:

Example (Python): python3 IntelligenceReportDownload.py -Region "sandbox" -ReportId "XXX" -ClientId "XXX" -ClientSecret "XXX" -OutFile "device_report.csv"

Example (Powershell): .\Intelligence_report_download_ps.ps1 -Region "sandbox" -ReportId "XXX" -ClientId "XXX" -ClientSecret "XXX" -OutFile "device_$(Get-Date -Format "yyyyMMddHHmmss").csv"

Change Log

3/7/2023 - Initial upload


Sign in to be able to add comments.

Comments 2


scottwilliams@paypal.com 4 months ago
I get the error: Intelligence_report_downloadTest.py: error: the following arguments are required: -Region, -ReportId, -ClientId, -ClientSecret, -OutFile even tho I updated that in the arg in the py file? is there away to run this in Power Bi to pull in reports?
scottwilliams@paypal.com 4 months ago
I get the error: Intelligence_report_downloadTest.py: error: the following arguments are required: -Region, -ReportId, -ClientId, -ClientSecret, -OutFile even tho I updated that in the arg in the py file? is there away to run this in Power Bi to pull in reports?