[api] Setting user to nil to avoid code quality test errors.