Preserve Item Permissions



On This Page

Overview

This feature allows the source permissions for folders and files to be transferred to the destination during job execution. Note that the Permission Preservation toggle will be inactive for jobs that use platforms that don’t support permissions.

Permission Options

Preservation Policy

Permission preservation policy determines how you want permissions to be applied with your job execution(s).

Setting

API Parameter

Description

Setting

API Parameter

Description

Disable Preserve item Permissions

"policy": "none"

No permissions will be passed from source to destination. This is the default.

Add Permissions

"policy": "add"

The current permissions existing on impending transfers (on files or folders) will be preserved as they are transferred on both the source and the destination. This is the recommended setting.

Prefer the permissions on Source

"policy": "diff"

This will reconcile permissions with the source, which will remove permissions from the destination if they do not match the source. This will keep things in sync if the destination folder levels more permissions than the source. This is a good option for sync jobs that are constantly moving back and forth to keep everything as intended.

Assign Permissions from file

"policy": "add"

The location of the import file must be specified in the import path. See the sample JSON at the bottom of the page.

Permissions will be assigned based on the permissions import.

Shared links only

"policy": "none"

AND

"links": true,

 

This preserves permissions for shared links only.

Failure Policy

Permission failure policy determines what should happen with your job execution(s) should it encounter failures.

UI Setting

API Parameter

Description

UI Setting

API Parameter

Description

Transfer the item

"failures": "none"

Do not halt transfer of the item on permission failures. This is the recommended setting if you want to ensure content will transfer even if permissions are not applied due to warnings or failures.

Do not Transfer the item

"failures": "exceptions"

This applies to platform exceptions only. Halt transfer of item (e.g. a folder's children) when there are platform exceptions while transferring permissions to the destination. This is the default.

Do not Transfer the item

"failures": "deny"

Halt transfer of item when any deny or disinheritance permissions fail to transfer to the destination

 

"failures": "all"

Includes both "exceptions" and "deny" policies.

 

DryvIQ will reevaluate permissions every time the content changes or a permissions reset is performed. This is applicable for both copy and synchronize job types. For example, if a new permission is added to a file but no other changes occur, DryvIQ will not apply this permission on subsequent runs. A permission reset will need to be performed.

 


REST API

Example JSON

{ "name":"Permission_Prop", "kind": "transfer", "transfer": { "audit_level": "trace", "transfer_type": "copy", "permissions": { "policy": "add", "failures": "exceptions", "import": { "source": { "text": { ["delimiter"]: ",", //optional, defaults to comma "target": { "path": "/permissions.csv" } } }, "output": { "format": "text" } } }, "source": { "connection": { "id": "{{nfs_connection}}" }, "target": { "path":"/" } }, "destination": { "connection": { "id": "{{cloud_connection}}" }, "target": { "path": "/proptest1" } } }, "schedule": { "mode": "manual" } }


Legacy Setting

You can still use "permissions": "add" or "permissions": {...} and "permissions_import": { ... } separately if you do not want to specify a failure policy or want to set import and policy separately. They will, however, be returned together under "permissions" when getting the transfer job details (e.g. fields=all or fields=transfer.permissions).

{ "name":"Permission_Prop", "kind": "transfer", "transfer": { "audit_level": "trace", "transfer_type": "copy", "permissions": "add", "permissions_import": { "source": { "text": { ["delimiter"]: ",", //optional, defaults to comma "target": { "path": "/permissions.csv" } } }, "output": { "format": "text" } }, "source": { "connection": { "id": "{{nfs_connection}}" }, "target": { "path":"/" } }, "destination": { "connection": { "id": "{{cloud_connection}}" }, "target": { "path": "/proptest1" } } }, "schedule": { "mode": "manual" } }



DryvIQ Migrate Version: 5.6.1.4136
Release Date: February 9, 2024