astroctl organization remove-user
Remove a user from the organization (owner with the global admin role, or a super-admin)
Synopsis
Remove a user from the organization.
Only the organization's owner, when they also hold the global admin role, or a super-admin can do this; organization admins cannot. The owner cannot be removed.
Terminal
astroctl organization remove-user [flags]
Examples
Terminal
# Remove user from the organization
astroctl org remove-user --org-id "org-id" --user-id "user-id"
Run the following command to get the user id and org id
astroctl whoami
Options
Terminal
-h, --help help for remove-user
--org-id string ID of the organization (required)
--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