copy_permissions()
Usage
copy_permissions(sourceNode, targetNode[, overwrite = false])
Description
Copies the security configuration of an entity to another entity. If the overwrite
parameter is set to true, existing security relationships are overwritten. If it is not set (or omitted) the function works additively.