code: def find_user(search_params):
      
      user = None
      params = {prop: value for prop, value in search_params.items() if value}
      if 'id' in params or 'email' in params:
          user = user_service.first(**params)
      return user
docs: Find user
      Attempts to find a user by a set of search params. You must be in
      application context.