The action of the unitary group associated with a quadratic extension of fields