But how can we measure the position of both particles?
We just assume an information input that one particle is at $x_1$, another at $x_2$, and then propose the appropriate state vector for this knowledge. Unfortunately, how this kind of knowledge can be obtained is usually not very clear from QT textbooks, the goal there is to learn the formalism and established methods of its application, not experimental physics or why the theory works in that particular way.
The two particles could be inferred to be there at those points of space from inspecting a photograph, if they left a trace of droplets/bubbles which can be assigned time and spatial coordinates. Or the particles could have been prepared to be in those places, for example, by shooting them there through a tube from a particle accelerator. If the history of the particles until the time of position determination is kept, then the two particles could be distinguishable by their history of positions at previous times. If first particle (first meaning first in our tracking records) was in state $|a\rangle$, and the second particle at state $|b\rangle$, then the appropriate state for these distinguishable particles would be written as $|a,b\rangle$, or $|a\rangle \otimes |b\rangle$. This state captures the knowledge "the particle 1 is in state $a$ and the particle 2 is in state $b$".
But if the particles are too close to each other beyond the ability of measurements to track their identity, or their history isn't known, they can't be distinguished and the appropriate state of the combined system must imply same things for both particles. One way to write down such state is either by symmetrization or anti-symmetrization of $|a,b\rangle$. For bosons, symmetrization is used, for reasons that are hard to explain here. So the appropriate state for two particles and two different states but where the particles are indistinguishable is
$$
\psi = \frac{1}{\sqrt{2}}\bigg(|a\rangle\otimes |b\rangle + |b\rangle\otimes |a\rangle \bigg).
$$
What operator are we using?
For what - for measuring? None. Measuring is not done by operators! Operators are mathematical concepts that are associated with extracting expected average value of physical quantity for given $\Psi$. Or with eigenvalue equations that define valid values of those quantities.
You can ask: which operator has eigenstates $x_a,x_b$ where the first particle is at position $x_a$ and the other at position $x_b$? For a single-dimensional coordinate $x$, such operator acts on functions of two variables $\psi(x_1,x_2)$ and its action has to result in a two-component vector multiplying the psi function:
$$
\hat{O} \psi(x_1,x_2) = \left(\array{ x_1 \\ x_2} \right) \psi(x_1,x_2)
$$
These are really two simple equations, but we can write them as single "vector" equation using the column/matrix notation.
So the sought operator $\hat{O}$ is not the product $\hat{x}_1 \otimes \hat{x}_2$, but a two-component vector operator, which can be also written using the tensor product notation:
$$
\left(\array{ \hat{x}_1 \\ \hat{x}_2}\right) = \hat{x}_1\mathbf{e}^{(1)}_{1} \otimes \mathbf{1}^{(2)} + \mathbf{1}^{(1)}\otimes\hat{x}_2\mathbf{e}^{(2)}_{1}.
$$
Here $\mathbf{e}^{(1)}_{k}$ is the basis vector along the $k$-th axis in the coordinate space of the first particle, and $\mathbf{e}^{(2)}_{k}$ is the same for the second particle. Together these 6 basis vectors span 6-dimensional coordinate space of the combined system.
In the eigenvalue equation above, each operator component extracts only eigenvalues for "its" particle subspace of the whole coordinate space.
Let't try this for a more complicated example: if the position measurement results are three-dimensional, the psi function for two particles depends on 6 coordinates $x_1, y_1, z_1, x_2 , y_2, z_2$ and the sought operator acts on all those coordinates:
$$
\left(\array{\hat{x}_1 \\ \hat{y}_1 \\ \hat{z}_1 \\ \hat{x}_2 \\ \hat{y}_2 \\ \hat{z}_2}\right) \Psi(x_1, y_1, z_1, x_2 , y_2, z_2) = \left(\array{x_1 \\ y_1 \\ z_1 \\ x_2 \\ y_2 \\ z_2} \right) \Psi(x_1, y_1, z_1, x_2 , y_2, z_2)
$$
These are really 6 equations, but we can write them as one 6-dimensional vector equation.
The operator on the left hand side is not tensor product of the particle operators, but sum of two operators that act on different particle's 3D coordinate spaces:
$$
\left(\array{\hat{x}_1 \\ \hat{y}_1 \\ \hat{z}_1 \\ \hat{x}_2 \\ \hat{y}_2 \\ \hat{z}_2}\right) = \left(\array{\hat{x}_1 \\\hat{y}_1\\\hat{z}_1}\right) \otimes \mathbf{1}^{(2)} + \mathbf{1}^{(1)}\otimes \left(\array{\hat{x}_2 \\\hat{y}_2\\\hat{z}_2}\right) =
$$
$$
= \hat{\mathbf r}_1 \otimes \mathbf{1}^{(2)} + \mathbf{1}^{(1)}\otimes\hat{\mathbf r}_2.
$$