Solving the gauge identities