Entity-level routine to search users/courses