Rod...

The code snippet I posted does work. I tested it in my domain at work. My guess is you dont know what the correct path of the user object is and thats probably why Doc is trying to get you to use the kixforms script to get the path. Is the user object in the users OU or is it in a different OU? That will effect where you query the dept from.