The Identity is a spatial operation and it needs two layers. This operation creates
a new layer composed of the difference and the intersection between geometries
of the two layers (A and B)
The resulting layer will contain all geometries generated by the DIFFERENCE (A - B) and the geometries generated by the INTERSECTION (A Intersection B).
The attributes of the resulting layer will have at least an ID, and a GEOMETRY. Besides that, other attributes from A and B can be chosen to compose the new layer. In this case, the geometries generated by the DIFFERENCE will have values only for the attributes from A, and the geometries generated by the INTERSECTION will have values for all attributes (A and B).
It is accessed through:
Processing > Vector Processing > Identity...
to select
the output directory and also inform the new layer name to
store the result,
to
select the Data
Source
(giving its connection parameters).