The built-in InGroup() will not work with computer accounts.

There are a number of different solutions - search the board for alternatives.

One example is ComputerInGroup()