ReferenceCLISpace
Space Access Grant Create
Space Access Grant Create CLI command reference
goodmem space access grant create
Create one direct authorization grant
Synopsis
Create one direct grant attached to this space.
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 space access grant create <space-id> [flags]Examples
goodmem space access grant create 70e025f6-76ca-4cbe-b8fc-7dab8e84590a \
--principal b3303d0a-1a4a-493f-b9bf-38e37153b5a2 \
--operation READ_SPACE --selector EXACTOptions
--all-authenticated Grant to every authenticated principal
-f, --format string Output format: json, compact, quiet (default "json")
-h, --help 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_OFOptions 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 address (gRPC API)SEE ALSO
- goodmem space access grant - Manage direct authorization grants