--- title: "change permission of workflow-attachments()" slug: "w-flow-change-attachment-permission" updated: 2025-12-10T06:19:26Z published: 2025-12-10T06:19:26Z canonical: "docs.lobstersoftware.com/w-flow-change-attachment-permission" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # change permission of workflow-attachments() **This function is deprecated.** This function can be used to add or remove DataCockpit users or DataCockpit roles authorised to attach files in workflow state forms. The return value in case of success is *true*, otherwise *false*. ## Parameters | Parameter | Description | | --- | --- | | a | Name (see VAR_SYS_WF_DISPLAYNAME) or ID (see VAR_SYS_WF_ID) of the workflow job. **Note:** Can remain empty if the function is used in a transition. | | b | Name of the state. | | c | DataCockpit login name with prefix *WebMonitor:* or DataCockpit role. | | d | (optional) *true* to remove all DataCockpit login names and DataCockpit roles. Parameter ***c*** can then remain empty. Default: *false.* |