GoodMemGoodMem
ReferenceCLIEmbedder

Embedder Access Grant Create

Embedder Access Grant Create CLI command reference

goodmem embedder access grant create

Create one direct authorization grant

Synopsis

Create one direct grant attached to this embedder.

The resource kind is fixed and the final positional argument is its UUID. Specify exactly one audience with --principal or --all-authenticated. Resource-oriented create commands accept only EXACT or DIRECT_MEMBERS_OF selectors; use the canonical access-policy command for ANY or OWN.

goodmem embedder access grant create <embedder-id> [flags]

Examples

  goodmem embedder access grant create 70e025f6-76ca-4cbe-b8fc-7dab8e84590a \
    --principal b3303d0a-1a4a-493f-b9bf-38e37153b5a2 \
    --operation READ_EMBEDDER --selector EXACT

Options

      --all-authenticated[=true|false]   Grant to every authenticated principal
  -f, --format string                    Output format: json, compact, quiet (default "json")
  -h, --help[=true|false]                help for create
      --id string                        Optional client-provided authorization-grant UUID
      --operation string                 Access-policy operation (for example READ_SPACE)
      --principal string                 Principal UUID receiving the grant
      --selector string                  Resource selector: EXACT or DIRECT_MEMBERS_OF

Options inherited from parent commands

      --api-key string   API key for authentication (can also be set via GOODMEM_API_KEY environment variable)
      --server string    GoodMem server URL (gRPC API; default ports: https=443, http=80)

SEE ALSO

On this page