As an Organization Owner, you can add new team members to Astro and grant them user roles with permissions for specific actions across your Organization.
To manage users at the Workspace level, see Manage Workspace users. To manage groups of users, see Manage Teams.
For more information on user roles, see Manage user permissions on Astro.
If your Organization has configured an identity provider (IdP) with Astro, assign users to Astro from your identity provider. By default, any users that you assign can join your Organization as an Organization Member without an invite. To change this behavior, see Disable just-in-time provisioning.
You can also manually add users to an Organization. You must manually add users in the following circumstances:
In the Astro UI, click Organization Settings.
Go to Access Management.
Click Invite member:
Enter the user’s email.
Select an Organization role for the user. See Organization roles reference.
Click Invite member.
After you add the user, their information appears in the Users tab in Access Management. To access Astro, the user needs to accept the invitation sent by email and then create an Astro account.
See User permissions to view the permissions for each available Organization role.
In the Astro UI, click Organization Settings.
Go to Access Management.
Find the user in the Users list. To view or manage the user’s Organization, Workspace, and Deployment roles, either click the user’s row to open the User Details page, or open the action menu (⋯) on the user’s row and select Edit User.
(Optional) Edit the user’s role. See Organization roles. If you opened the action menu, you can change the user’s Organization role from the Edit User option. On the User Details page you can view and edit the user’s Organization, Workspace, Deployment, and Dag roles.
If you updated the user’s role, click Update member. To delete the user, open the action menu and select Remove user…, or click Remove member on the User Details page.
You can use the Astro CLI and a shell script to add multiple users to an Organization at once. The shell script reads from a text file which contains user information. You can generate the text file for each new batch of users that need to assigned to an Organization and run the script using the Astro CLI.
Create a text file named users.txt.
Open the text file. On each line, add a user’s email and their role separated by a space. The following is an example of how you can write a list for inviting users to an Organization:
Create a file named add-users.sh and then add the following script to it:
Sign in to the Astro CLI using astro login, and then run astro organization list to ensure that you’re in the same Organization where you want to add the users. If you’re not in the right Organization, run astro organization switch.
Run the following command to execute the shell script:
(Optional) To use this script as part of a CI/CD pipeline, create an Organization API token and specify the environment variable ASTRO_API_TOKEN=<your-token> in your CI/CD environment.