Search for Products in the User View

This returns the id: $passedArgs = $this->request->getParam(‘pass’);

      ->where([ 'Users.id' => $passedArgs ])

But: Cannot convert value of type string to integer

Are you passing a string? It should not be hard to discover. If not here, it should not be hard to discover where you are passing one.