The SET_PERMISSIONS action assigns a role to one or more users for a file or folder in Alfresco Content Services (ACS).
Use this action to manage access to repository content by granting users the permissions required to view, modify, manage, or administer files and folders. Permissions can be applied as part of workflow-driven content governance, collaboration, and security processes.
During the operation, the connector identifies the target file or folder and the specified users are located. ACS validates the requested role, which is then assigned to the users for the selected content. The operation response is returned to the workflow and the updated permissions take effect according to the repository's security model.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | Array<json>, JSON | Optional | ACS file for which permissions will be updated. If multiple files are provided, only the first file is processed. |
| folder | Array<json>, JSON | Optional | ACS folder for which permissions will be updated. If multiple folder references are provided, only the first folder is used. |
| nodeId | String | Optional | Node ID of the file or folder. Example: a6a977a6-c728-4038-8dbc-d914c4d8cfb3. |
| path | String | Optional | Location or relative path of the file or folder whose permissions will be updated. |
| role | String | Required | Role assigned to the specified users. For example: Coordinator. |
| users | Array<string> | Required | List of user names that will receive the specified role. For example: ["hruser"]. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| response | Array<json> | Optional | Response returned by ACS for the permission assignment request. |