lets say i have


FOO.ORG
----Department(UO)
--------Department Users(UO)

Then to check if the user is in the Department Users UO I would do this:

InContainer('OU=Department Users,OU=Department,DC=FOO,DC=ORG', 'Computer')[0]

Is this correct?

How would the check be if I wanted to check if the user or machine that is logging in is in that UO?

Thanks in advance