Why not just use the following?
Code:

IF INGROUP('HR')
; -- DO WHATEVER
ENDIF



Otherwise, you are going to have to use an LDAP to use the OU that you have in your picture above. Have a look at -
InContainer() to do what you want.

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's