Get user and group information (thread-safe)