I would like to have relevance for a task of “if user DOMAIN\User123 is member of local group Distributed Com Users” then this task is relevant.
I have got the simple part of members of local group “Distributed Com Users” but I can’t seem to get how to check if a user is a member of that group, any help would be appreciated.
Thanks Jim, I was more looking for a “this task is relevant if this is true” type of relevance, would this still work? Is there a way to make it case insensitive?
Well, you had started down the road of using the IF statement, and as some people sem to like the “IF (test=true) THEN (True) ELSE (False)”, I thought that’s what you wanted.
Just put the relevance used to do the checking in on its own (including the extra code to force lowercase):
(concatenation “|” of (members of local group “Distributed Com Users” as string as lowercase)) contains (“DOMAIN\User123” as lowercase)