This article is devoted to the unique recovering of the domain of the Sturm–Liouville operator on a star graph. The domain of the Sturm–Liouville operator is uniquely identified from the set of spectra of a finite number of specially selected canonical problems. In the general case, the domain of the definition of the original operator can be specified by integro-differential linear forms. In the case when the domain of the Sturm–Liouville operator on a star graph corresponds to the boundary value problem, it is sufficient to choose only finite parts of the spectra of canonical problems for a unique identification of the boundary form. Moreover, the above statement is valid only for a symmetric star graph.