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
commands
Section titled “commands”Allowed or denied commands when using this permission.
{ "allow": [], "deny": []}description
Section titled “description”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.
identifier
Section titled “identifier”string
A unique identifier for the permission.
platforms
Section titled “platforms”Target[] | null
Target platforms this permission applies. By default all platforms are affected by this permission.
Allowed or denied scoped when using this permission.
version
Section titled “version”integer | null minimum of 1, formatted as uint64
The version of the permission.
Definitions
Section titled “Definitions”Commands
Section titled “Commands”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: []
Number
Section titled “Number”Any of the following:
integerformatted asint64Represents an [i64].numberformatted asdoubleRepresents a [f64].
A valid ACL number.
Scopes
Section titled “Scopes”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.
Example
Section titled “Example”{ "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.
Target
Section titled “Target”One of the following:
"macOS"MacOS."windows"Windows."linux"Linux."android"Android."iOS"iOS.
Platform target.
Any of the following:
nullRepresents a null JSON value.booleanRepresents a [bool].NumberRepresents a valid ACL [Number].stringRepresents 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.
© 2026 Tauri Contributors. CC-BY / MIT