You were given a reference to this thread basically for the little scriptlet to test. To take your problem to this thread is considered hijaaking. You should post to the topic you started.
Ingroup

This thread's topic is about @Priv and not about InGroup. There is no "problem" here per se, except for a misunderstanding of how @Priv works.

That said, this example of InGRoup() differs from yours whereby it does not look for <>1. Also there is an example of a LocalAdmin() UDF that is immune to localization.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.