Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Set File Attributes activity

The Set File Attributes activity sets common file attributes, such as timestamps, size, permissions, and UID/GID, for a file or directory on an SFTP server.

A good practice is to use the Get File List activity to return a list of files and their attributes first. Then, when you moved a file from a source host to a target host, use the Set File Attributes activity to set the source file attributes on the target file. This is demonstrated in the SFTP File Transferworkflow.

Input variables

VariableDescription
sourceHostName or IP address of the server containing the file or directory whose attributes you want to change.
sourcePortPort number to use to communicate with the target server. The default port number is 22.
sourceFilePathFull path to the file or directory whose attributes you want to change.
userIDUser ID attribute to apply to the file or directory. The UID and GUID variables must be set together as a pair.
groupIDGroup ID attribute to apply to the file or directory. The UID and GUID variables must be set together as a pair.
permissionsFile or directory permissions to set for the user and group specified. This value must be expressed as an integer, such as 16877, which defines these permissions: rwxr-xr-x. Note: The permissions number is an internal value returned by the Get File List activity.
accessTimestampOverride the timestamp when the file or directory was last accessed. The access and modification timestamps must be set together as a pair.
modificationTimestampOverride the timestamp when the file or directory was last modified. The access and modification timestamps must be set together as a pair.
sizeInBytesSize of the file or directory, expressed in bytes.
sourceCredentialTagSpecific Credential aliases for Orchestration activities this activity must use to run SSH commands on the host.

Output variables

VariableDescription
errorMessageThe executionResult.errorMessages from the Activity designer parsing sources. If this variable is not null, the operation has failed.
resultText message advising that the command was executed successfully.

Conditions

ConditionDescription
SuccessThe activity succeeded in changing the attributes of the specified file or directory.
FailureThe activity failed to change the attributes of the specified file or directory.

Parent Topic:SFTP File Transfer activity pack