Add additional_permitted_attributes parameter

See diff for a description of the parameter.

Part of https://www.openproject.org/work_packages/5553


**ATTENTION**
Requires https://github.com/opf/openproject/pull/1080 to be merged.