Just be sure there's something to investigate on Ingroup function/OS :

I try the protocol to use Ingroup function :

 Code:
If InGroup('MyUniversalGroup')
 'In Group!'
Else
  'Not in group.'
EndIf
@CRLF


I tried it with a new PC under Windows 11 Pro (build 10.0.22621 / 22H2) from factory and got a 'Not in group.'

We tried to reinstall Windows 11 Pro (build 10.0.22621 / 22H2) from Microsoft and got a 'Not in group.' too !

What I observed :
Ingroup doesn't work with a directly installed Windows 11 Pro but,
Ingroup does work with a migrated Windows 11 Pro (same build 10.0.22621 / 22H2) from Windows 10 Pro.

I tried to install on the same machine a Windows 10 Pro (build 10.0.19045 / 22H2) and then I got an 'In Group!'

It's now working like a charm, but on Windows 10 Pro... I didn't try to migrate to Windows 11 Pro right now (may be later !)

Best regards