astroctl organization add-user
Add a user to the active organization with a role (owner with the global admin role, or a super-admin)
Synopsis
Add a user to the active organization as a Viewer, Editor or Admin. Viewers read status, editors deploy and manage apps, admins manage clusters, credentials and members.
Only the organization's owner, when they also hold the global admin role, or a super-admin can do this; organization admins cannot. Adding an admin also needs a plan that includes admin roles.
Terminal
astroctl organization add-user [flags]
Examples
Terminal
# Add a user as a viewer (the default)
astroctl org add-user --user-id 3f1c2a9e-7b4d-4e2a-9c61-0d5e8f7a1b23
# Add a user who deploys apps
astroctl org add-user --user-id 3f1c2a9e-7b4d-4e2a-9c61-0d5e8f7a1b23 --role Editor
# Find the user ID: the user runs
astroctl whoami
Options
Terminal
-h, --help help for add-user
--org-id string ID of the organization (defaults to the active organization)
--role string Role in the organization: Viewer, Editor or Admin (default "Viewer")
--user-id string ID of the user (required)
Options inherited from parent commands
Terminal
-o, --output string Output format (table|json|yaml) (default "table")
SEE ALSO
- astroctl organization - Manage organizations