MM5.6 Macmillan Give Content Owner Rights

Macmillan want a ‘content owner’ to be able to edit the assets they own, but not upload them, before they are distributed.

The ‘Handle Content Owner Rights’ workflow is triggered when the ‘Content Owner’ metadata field is
edited. This field is a MasterItemReference fields and contains all the members in the System tools>Users and groups>Users>Macmillan>Content Owners folder.

When triggered, the automation gives read-write access to the member that was selected. If a member is removed from that field, the rights are removed.

trigger "metadata" { type = "metadata" resolves = ["Set Access Rights", "Remove Access Rights"] meta_field = "guid:2460D98C-8FBC-48C5-9046-85E94F7D4DFD" } filter "If Added" { type = "Bool Comparison filter" value = "@deleted" expected_value = "false" negate = "false" } action "Set Access Rights" { type = "Set Access Rights" needs = "If Added" accessor_item_id = "@changedValue" target_item_id = "@sourceAssetItemId" read_access = "true" write_access = "true" } filter "If Deleted" { type = "Bool Comparison filter" value = "@deleted" expected_value = "true" negate = "false" } action "Remove Access Rights" { type = "Remove Access Rights" needs = "If Deleted" accessor_item_id = "@changedValue" target_item_id = "@sourceAssetItemId" }