Client Relevance for client group membership in a custom site

The backstory:
We are trying to create a property that defines a server’s region based on group membership. The groups are automatic groups based on the relay that the machines are reporting to. Some of these machines are servers that are not defined by a specific region. The non-region-specific servers are identified in automatic groups in a custom site.

The issue:
The following client relevance statement works for automatic group IDs that are in the master action site, but not for automatic group IDs that are in a custom site. When we include group IDs for automatic groups in the custom site, we get the following error:
Singular expression refers to nonexistent object.

if ( member of groups 123456 of sites ) or ( member of groups 654321 of sites ) then "Location_1" else If... rinse/repeat

We have also tried:
if ( member of groups 123456 of site "Custon_Site_Name" ) or ( member of groups 654321 of site "Custon_Site_Name" ) then "Location_1" else If... rinse/repeat

Is the relevance to address automatic groups in a custom site different than the relevance to address automatic groups in the master action site? what is preventing this code from working when applied to a group in a custom site?

Cheers,
Emil

My guess is that maybe you are listing the custom site with the name of the site instead of the name that is in the URL(it’s not all that intuitive).

This works in my environment.

(exists true whose (if true then (member of group 123456 of site “CustomSite_Sitename”) else false))

I would note that the sitename that shows in the CustomSite_XXXXX isn’t necessarily going to match what is in the name column if your looking at your sites in table view. You may have to click on Sites > Custom Sites then right click on the column header and select URL to see the actual name of the custom site.

image

Honestly the easiest way is to go into Computer Groups and Add the groups through that menu. Just go all the way to the top and I believe Group Membership is the second one from the top.

1 Like