Script seems to run and the csv output seems to be correct.
However script fails to write the data back to ITGlue AD.
Active Directory flex asset configuration file found!
No flexible asset id was found... creating a new flexible asset.
New-ITGlueFlexibleAssets : {"errors":[{"status":401,"title":"Unauthorized","detail":"Unauthorized resource
access","source":{"pointer":"id"}}]}
At C:\jobs\ITGlueAPI\ActiveDirectory.ps1:338 char:41
Get-itglueusers and get-itglueorganizations returns valid data.
The org_id and flexible_asset_type_id from config.psd1 have been confirmed to be correct based on the id in the urls in ITGlue (US version)
Script seems to run and the csv output seems to be correct. However script fails to write the data back to ITGlue AD. Active Directory flex asset configuration file found! No flexible asset id was found... creating a new flexible asset. New-ITGlueFlexibleAssets : {"errors":[{"status":401,"title":"Unauthorized","detail":"Unauthorized resource access","source":{"pointer":"id"}}]} At C:\jobs\ITGlueAPI\ActiveDirectory.ps1:338 char:41
Get-itglueusers and get-itglueorganizations returns valid data. The org_id and flexible_asset_type_id from config.psd1 have been confirmed to be correct based on the id in the urls in ITGlue (US version)
Note this is a 2016 AD environment.