GoodMemGoodMem
ReferenceCLISpace

Space Access Role Assign

Space Access Role Assign CLI command reference

goodmem space access role assign

Assign one code-defined role to a principal

Synopsis

Assign one code-defined role within this space.

The final positional argument is the resource UUID. --principal and --role are named flags so the recipient and assigned capability remain unambiguous at the call site.

goodmem space access role assign <space-id> [flags]

Examples

  goodmem space access role assign 70e025f6-76ca-4cbe-b8fc-7dab8e84590a \
    --principal b3303d0a-1a4a-493f-b9bf-38e37153b5a2 --role SPACE_ADMIN

Options

  -f, --format string      Output format: json, compact, quiet (default "json")
  -h, --help               help for assign
      --id string          Optional client-provided role-assignment UUID
      --principal string   Principal UUID receiving the role
      --role string        One code-defined role (for example SPACE_ADMIN)

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 address (gRPC API)

SEE ALSO