Skip to content

verdict authorize

Check permission for actor, action and resource, using separate arguments or a predicate literal.

Runs against the selected server connection. Effects: read server state.

  • verdict authorise
ArgumentTypeRequiredDefaultDescription
<first>positionalyesNo parser defaultActor identity or predicate literal
<second>positionalnoNo parser defaultAction string when supplied as a separate argument
<third>positionalnoNo parser defaultResource identity when supplied as a separate argument
--jsonbooleannofalseOutput as JSON
--endpointstringnoNo parser defaultInstance base URL, including any subpath (env: VERDICT_HOST, fallback: http://localhost:4891)
--hoststringnoNo parser defaultAlias for —endpoint
--api-keystringnoNo parser defaultAPI key (env: VERDICT_API_KEY takes precedence)
--profilestringnoNo parser defaultStored profile (env: VERDICT_PROFILE)
--localbooleannofalseUse http://localhost:4891 without stored or environment credentials

--help (-h) shows command help without executing the command. Boolean flags support --no-<flag>. Defaults stated in descriptions may be resolved by the handler or configuration rather than the argument parser.

One three-term predicate literal, or separate actor, action, and resource arguments.

File input: unsupported. Standard input: unsupported.

  • Actor and resource must be identities; action must be a string constant.
{
"kind": "json-schema",
"schema": {
"type": "object",
"required": [],
"additionalProperties": false,
"properties": {
"allowed": {
"type": "boolean",
"nullable": true
}
}
},
"example": {
"allowed": true
}
}

By default, the command renders human-readable records. --json writes one JSON result to stdout. Operational failures use status 1; JSON failures contain an error object with code and message. See shared output semantics.

  • 0: permission allowed.
  • 1: permission denied; JSON output is {}.

Argument, I/O, and other failures handled by the CLI runner use status 1.

verdict authorize User:alice read Document:report --json