Checking if a user is in an AD Hybrid user source

Hi Guys,

I have 2 user sources, 1 is a local and 1 is an AD Hybrid

I would like to be able to open a different window on a clients startup depending on if the user (windows login) is in the AD Hybrid or not.

can you use the with an AD user source without having to re-enter the password?

Any guidance appreciated.



system.user.getUser shoud do the trick:

if system.user.getUser("UserSource","UserName") != None: print "User exists" else: print "User does not exist."

Thanks for that,

What you have shown does the job nicely but I was hoping to validate the Username and Password as it might be the case that the same username is in both User sources?

Many thanks