Search user function for prompt