Set File Permissions
Set permissions on a file
Parameters
Section titled “Parameters”File path
Section titled “File path”Required
The full path of the file - ex. C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe
User or group
Section titled “User or group”Required
The user or group to add permissions for - ex. Domain\User or $env:COMPUTERNAME\LocalGroupName or S-1-5-32-544 or BUILTIN\Users. Please add only one user or group.
Permission
Section titled “Permission”Required — Default: Full Control
The permission to add Allowed values: Delete, Execute File, Full Control, Modify, Read, Read And Execute, Write.
Details
Section titled “Details”- Category: Permissions
- Brick ID:
File-Add-Permission
Raw JSON definition
Section titled “Raw JSON definition”{ "category": "permissions", "description": "Set permissions on a file", "developerVendor": "CapaSystems A/S", "displayName": null, "id": "File-Add-Permission", "name": "Set File Permissions", "parameters": [ { "defaultValue": "", "defaultValueObject": null, "description": "The full path of the file - ex. C:\\Program Files\\Common Files\\Microsoft Shared\\ink\\TabTip.exe", "id": "Path", "name": "File path", "regExValidation": "", "required": true, "type": "TextBox", "value": null, "values": [], "valuesObject": null }, { "defaultValue": "", "defaultValueObject": null, "description": "The user or group to add permissions for - ex. Domain\\User or $env:COMPUTERNAME\\LocalGroupName or S-1-5-32-544 or BUILTIN\\Users. Please add only one user or group.", "id": "Identity", "name": "User or group", "regExValidation": "", "required": true, "type": "TextBox", "value": null, "values": [], "valuesObject": null }, { "defaultValue": "", "defaultValueObject": { "id": "FullControl", "name": "Full Control" }, "description": "The permission to add", "id": "Right", "name": "Permission", "regExValidation": "", "required": true, "type": "ComboBox", "value": null, "values": [], "valuesObject": [ { "id": "Delete", "name": "Delete" }, { "id": "ExecuteFile", "name": "Execute File" }, { "id": "FullControl", "name": "Full Control" }, { "id": "Modify", "name": "Modify" }, { "id": "Read", "name": "Read" }, { "id": "ReadAndExecute", "name": "Read And Execute" }, { "id": "Write", "name": "Write" } ] } ], "powershell": { "base64Encoded": true, "function": "ZnVuY3Rpb2..." }, "type": "powerbrick", "version": "2026.7.2.1"}