Manage users in an Astro Organization
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.
Prerequisites
- Organization Owner permissions.
For more information on user roles, see Manage user permissions on Astro.
A new Astro UI is here
Astronomer has redesigned the Astro UI. Try the new experience and switch your instructions using the New Astro UI and Legacy UI tabs on this page. Your selection is remembered across the docs.
Add a user to an Organization
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:
- You don’t have an IdP configured.
- You disabled just-in-time provisioning.
- You want to invite a user to an Organization from a domain that you don’t own, such as a third party consultant.
- You want to invite someone from your company to Astro as a role other than Organization Member.
New Astro UI
Legacy UI
- In the Astro UI, go to Settings, then in the Access Management section, click Users.
- Click + Invite User.
- Enter the user’s email.
- Select an Organization role for the user. See Organization roles reference.
- Click Invite User.
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.
Update or remove an Organization user
See User permissions to view the permissions for each available Organization role.
New Astro UI
Legacy UI
- In the Astro UI, go to Settings, then in the Access Management section, click Users.
- Find the user in the Users list.
- To edit the user’s role, click the user’s More actions menu (⋯), select Edit User, change their access type, then click Update User.
- To remove the user, click the user’s More actions menu (⋯), select Remove User…, then click Yes, Continue.
Add a group of users to Astro using the Astro CLI
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.shand then add the following script to it:add-users.sh -
Sign in to the Astro CLI using
astro login, and then runastro organization listto ensure that you’re in the same Organization where you want to add the users. If you’re not in the right Organization, runastro 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.