It can be added for all forms in the “Special fields” GDPR (checkbox), where you can set the default value, a custom label and the mandatory field.
In onOffice enterprise, the Double Opt In option should also be enabled.
Related links
Enterprise Hilfe: Newsletter