Bug Fix: Avoid unnecessary AD queries

In multi-domains, parent domains were searched for child containers.
Bug Fix: Search fails with unassigned devices
Optimise for quick AD user searching

Avoids loading users groups when not needed