Permission
Descriptions of explicit privileges of commands.
It can enable commands to be accessible in the frontend of the application.
If the scope is defined it can be used to fine grain control the access of individual or multiple commands.
Object Properties:
- commands
- description
- identifier (required)
- platforms
- scope
- version
Allowed or denied commands when using this permission.
{ "allow": [], "deny": []}
string
| null
Human-readable description of what the permission does.
Tauri internal convention is to use <h4>
headings in markdown content
for Tauri documentation generation purposes.
string
A unique identifier for the permission.
Target
[] | null
Target platforms this permission applies. By default all platforms are affected by this permission.
Allowed or denied scoped when using this permission.
integer
| null
minimum of 1
, formatted as uint64
The version of the permission.
Allowed and denied commands inside a permission.
If two commands clash inside of allow
and deny
, it should be denied by default.
Object Properties:
- allow
- deny
string
[]
Allowed command.
Default: []
string
[]
Denied command, which takes priority.
Default: []
Any of the following:
integer
formatted asint64
Represents an [i64
].number
formatted asdouble
Represents a [f64
].
A valid ACL number.
An argument for fine grained behavior control of Tauri commands.
It can be of any serde serializable type and is used to allow or prevent certain actions inside a Tauri command. The configured scope is passed to the command and will be enforced by the command implementation.
{ "allow": [{ "path": "$HOME/**" }], "deny": [{ "path": "$HOME/secret.txt" }]}
Object Properties:
- allow
- deny
Value
[] | null
Data that defines what is allowed by the scope.
Value
[] | null
Data that defines what is denied by the scope. This should be prioritized by validation logic.
One of the following:
"macOS"
MacOS."windows"
Windows."linux"
Linux."android"
Android."iOS"
iOS.
Platform target.
Any of the following:
null
Represents a null JSON value.boolean
Represents a [bool
].Number
Represents a valid ACL [Number
].string
Represents a [String
].Value
[] Represents a list of other [Value
]s.- Represents a map of [
String
] keys to [Value
]s. Allows additional properties:Value
All supported ACL values.
© 2025 Tauri Contributors. CC-BY / MIT