I tried prefix the group with domainname\groupname, I tried
If Ingroup("group") = 1 -- didn't work
If Ingroup('group') -- didn't work
If InGroup('domain\group') -- didn't work...

I read those posts but is there a solution to the problem?