API Query to get members of a computer group

I wish to run an API query within PowerShell that will output members of specific group. I have found this url that will give me the list of Computer groups
https://:52311/api/query?relevance=names of bes computer groups

What I would like to do is run a similar query but instead of giving me the name of the groups I would like to get the actual members of a specific group

You can perform a similar call with slightly different session relevance:

names of members of bes computer group whose (name of it = "MyComputerGroup")

@Aram Could you assist with expanding this relevance clause out? We’d like to list the members of a group along with a couple customer property values. How would we approach that?

The go-to resource on efficiently querying multiple properties is at Efficient Session Relevance Query for Computer Properties

Have a read through that, and a simple substitution will filter to your computer group.

Instead of

set of bes computers

refer to

member set of bes computer group whose (name of it = "MyComputerGroup")
3 Likes