abstract the lookup of a user by login name and groups by oid