An initial-boundary value problem for the diffusion equation with an unknown initial condition is considered. Additional information used for determining the unknown initial condition is an external volume potential whose density is the Laplacian calculated for the solution of the initial-boundary value problem. Uniqueness theorems for the inverse problem are proved in the case when the spatial domain of the initial-boundary value problem is a spherical layer or a parallelepiped.