We have multiple Workspace One appliances where we configure MFA for Azure in front of a DaaS tenant.

Now we want to know the status of the connector services, because if for instance the ‘Directory Sync’ fails. New users cannot login into their VDI or remote apps.
And yes you can check the windows services as well, but in our case the windows service was running. But the Directory Sync service still had a Health issue.

Somehow, I could not find any documentation about this API part to create a script to monitor this part..

After playing with the browser dev tools I found the correct API uri. And in the end I was able to create this script.

$WSoneFQDN = "https://workspaceone.fqdn.ext"
$GeneralAPI = "/SAAS/jersey/manager/api/enterpriseservices"
$GeneralURI = $WSoneFQDN + $GeneralAPI

$HZN = "HZN **************************"
$Headers = @{}
$Headers.Add("Content-Type","application/vnd.vmware.horizon.manager.enterpriseservice.health+json")
$Headers.Add("Authorization", $HZN)
$items = Invoke-RestMethod -Method GET -Uri $GeneralURI -UseBasicParsing -Headers $Headers
$UUID = ($items.items.Where({$_.serviceType -eq 'EIS'})).enterpriseserviceUUID
$uri = $GeneralURI + '/' + $UUID + '/health'
$result = Invoke-RestMethod -Method GET -Uri $uri -UseBasicParsing -Headers $Headers
$result.allOk

In the script you need to replace the $WSoneFQDN and the ********** for the actual HZN code. To get this code you need to login into the admin portal of the workspace one appliance once.
Once you are logged in, you can open the dev tools to get the HZN value.

One thought on “Workspace ONE Access services monitoring”
  1. Is there an API to clear the Settings -Oauth2.0 Mangament -UEM.

    Or how shall we know if there is an API that exixt which can be used to alter Data in this section

Leave a Reply

Your email address will not be published. Required fields are marked *