Re: How to query ePO API and get assignment path by agent GUID?
You may have already found the solution, but just for everyone else, here is a solution I came up with.
First, I tried using various remote commands via ePO API (system.find for example), but there wasn't an option for Agent GUID. This option does not work for this scenario..
Secondly, the epo command for system.findGroups did not provide the full assignment path of the group. It only returns the last group (e.g., returns Windows instead of My Organization\Servers\Windows). This option also does not work for this scenario.
Finally, I logged into the ePO console and attempted to create a query that I could call via persistent query API, however, the query filter doesn't allow me to choose Agent GUID as an option - it's not even there. Still, this option doesn't work for this scenario.
In the end, I was forced to learn how to write an s-expression, which allowed me to query the ePO database using language similar to SQL. Here is what worked for me.
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.
Community Help Hub
New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.