Part of that guidance will be explaining that interior, two component foam is applied with the professional using specific personal protective equipment (high-pressure foam is installed while using a respirator, for example). It is encouraged that professionals explain clearly to customers that this equipment, coupled with certain work and engineering practices, including ventilation, is used to minimize exposures to the chemicals used to make SPF during the job.
A. You can use closed-cell spray foam that way if you want, although you should realize that the spray foam will prevent the roof sheathing from drying inward. This approach should only be used if the roof sheathing is bone dry, because it will never dry when sandwiched in this manner. Most building scientists would prefer to see fiberglass rather than closed-cell spray foam under the roof sheathing in this type of assembly.

Roof Coating Seal