Skip to content

cub organization-member create

cub organization-member create

Add a user to the organization

Synopsis

Add an existing user to the organization. The user is named in JSON by ExternalID, the user's ID in the identity provider, read with --from-stdin or --filename; the argument names the member only in the output. Membership is held by the identity provider, and adding a member requires an organization admin.

Examples:

  # Add a user to the organization by their identity provider ID
  echo '{"ExternalID": "8a1c3d0e-5b7f-4e2a-9c61-0f4b2d7e9a13"}' | cub organization-member create --from-stdin new-member
cub organization-member create <organization-member> [flags]

Options

      --allow-exists          Allow creation of resources that already exist
      --annotation strings    annotations in key=value format; can separate by commas and/or use multiple instances of the flag
      --delete-gate strings   delete gates in key[=true] format; can separate by commas and/or use multiple instances of the flag
      --filename string       Read the ConfigHub entity's fields, as YAML or JSON, from file, URL (https://), or stdin (-), as --from-stdin does; mutually exclusive with --from-stdin
      --from-stdin            Read the ConfigHub entity's fields, as YAML or JSON, from stdin; merged with command arguments on create, and merged with command arguments and existing entity on update. A field the entity does not have, or one only the server sets, is refused; cub <entity> explain lists the fields
  -h, --help                  help for create
      --label strings         labels in key=value format; can separate by commas and/or use multiple instances of the flag
  -o, --output string         Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
      --quiet                 No default output.
      --verbose               Detailed output, additive with default output

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output

SEE ALSO