astroctl organization set-role
Change a member's role in the active organization (owner with the global admin role, or a super-admin)
Synopsis
Change a member's role in the active organization to Viewer, Editor or Admin.
Only the organization's owner, when they also hold the global admin role, or a super-admin can do this; organization admins cannot. Making someone an admin also needs a plan that includes admin roles. The owner's own role never changes.
Terminal
astroctl organization set-role [flags]
Examples
Terminal
# Let a member deploy and manage apps
astroctl org set-role --user-id 3f1c2a9e-7b4d-4e2a-9c61-0d5e8f7a1b23 --role Editor
# Make a member an admin (organization owner only)
astroctl org set-role --user-id 3f1c2a9e-7b4d-4e2a-9c61-0d5e8f7a1b23 --role Admin
Options
Terminal
-h, --help help for set-role
--role string New role: Viewer, Editor or Admin (required)
--user-id string ID of the member (required)
Options inherited from parent commands
Terminal
-o, --output string Output format (table|json|yaml) (default "table")
SEE ALSO
- astroctl organization - Manage organizations