Relevance is not working for group membership

I have a requirement to display the Computer Group name in the Computers view as a column (block/header).

The expectation is:

  • The data should be fetched from both Automatic and Manual Computer Groups

  • The output should show only the Group Name

  • The result should not indicate whether the group is Automatic or Manual

  • The column value should reflect exactly what is visible under “Computer Group Memberships” for each computer

Example: If a computer belongs to the following groups:

  • APL_Endpoints (Automatic)

  • APL_All_Endpoints (Automatic)

  • IT_Test_Machines (Manual)

Then the column should display:

APL_Endpoints, APL_All_Endpoints, IT_Test_Machines


Approach Taken

  • Created a custom Analysis with a Retrieved Property

  • The Analysis is activated for All Computers

  • The column is added to the Computers view

Relevance Used

Plain Text

relevance isn’t fully supported. Syntax highlighting is based on Plain Text.

concatenation ", " of (names of computer groups whose (it contains computer))

Show more lines


Current Challenge

  • In some cases, the column shows <undefined> even though the computer is a member of one or more groups

  • Confirmed that the group membership is visible under Computer Group Memberships

  • Ensured the Analysis is re‑activated and client refresh is triggered

Looking for guidance or best practices to ensure:

  • Consistent evaluation

  • No <undefined> values when group membership exists

  • Proper design without circular dependencies


Goal

To have a reliable and clean column in the Computers view that reflects only the Computer Group names (from both Automatic and Manual groups) for reporting and segregation purposes.

You can create this property and it will give you the result.

(if exists ((settings of client) whose (it as string contains "__Group_0_" and it as string contains "=True")) then (following texts of substrings "__Group_0_" of preceding texts of substrings "=True" of (((settings of client) whose (it as string contains "__Group_0_" and it as string contains "True")) as string)) else "")

3 Likes

Welcome to the forum @ShyamVadlamani :waving_hand:

This previous thread may help.

Client relevance to get computer group memberships - Content Authoring - BigFix Forum

I modified the relevance to also cater for the newer “Server” based groups.

Q: concatenation ", " of ((values of headers "subject" of relevant fixlets whose (value of header "X-Fixlet-Type" of it = "ComputerGroup") of sites);(following texts of firsts "__Group_0_" of names of settings whose (value of it = "True") of client);(following texts of firsts "__Group_1_" of names of settings whose (value of it = "True") of client))
A: Test Group - Automatic, Test Group - Manual, Test Group - Server, Windows - Workstation - Win11
T: 0.044 ms
1 Like