Automatic Computer Group based on Admin account

I am trying to create automatic computer group based on a local admin account (AD connected and also workgroup). Is this even possible to do? Also, is there a way to accomoplish this on the *nix OS flavors?

I am trying to use an analysis I created to populate a group automatically. Here is what I am trying to do

(members of local group “Administrators” as string contains “***”)

You can do something like this:

exists (it as string) whose(it contains "\Administrator") of members of local groups "Administrators"

One issue is that it will work for local users, but only for AD users that have logged in recently.

What is the purpose of this? There might be a better way to go about this.


This is a related item for the Mac that might be applicable on other *nix OSes: https://bigfix.me/analysis/details/2994662


There is also this option:

names of users whose(admin privilege of it)

This inspector seems to be Windows only: https://developer.bigfix.com/relevance/reference/user.html

I am tryting to create an automated griup based on an AD security group or account being in the local admins group on each server.

For *nix devices, I am trying this

(exists (it as string) whose(it contains “***”) of file “/etc/passwd”)

I found a way to get it working. Thanks for your help