Hello! I'd like to use Powershell to query the API for the last logged in user of a specific asset. The asset would have to be queried by the asset name and not the ID. I have looked into the Get Workstation operation, but that requires the workstation_id, which is different from the name.
For instance, I would have an array of desktops pulled from an AD group, and for each desktop, the API is queried for last logged in user and returns the value. The Asset name in ServiceDesk Plus is the same as the object name in AD.
I'm a bit of an API noobie if it wasn't obvious yet, so any help would be appreciated.