Bulk import teams
When creating new team structures or making significant modifications to existing ones, consider bulk-importing your teams via a CSV file upload. To edit teams directly in Flow, learn more about Team management and Team details.
Use either the Flow REST API or the Teams page to bulk upload or update team structures.
Prepare a CSV file to bulk import teams
Before bulk importing users, create a CSV file with the following columns:
Name
Email
Team name
Parent team name (if applicable)
Membership visibility: Yes, No, or Inherit
Membership type: Viewer or Contributor
Attributes, for example, Country, Seniority Level, Engineer Type (if applicable)
If you already have teams and users in Flow, simplify this process by downloading your existing team and user structure from the Teams page, then using this as a template for your changes. This ensures your CSV file has the correct columns and setup, and gives you a reference for how your users are already structured.
When adding a new user or team, if membership visibility is left blank, we will default to Inherit. For an existing user or team, if membership visibility is left blank, we will not update this field from its previous value. Make sure all team names are unique.
If you want to assign specific user attribute values to your imported team members, you need to configure user attributes for your organization first.
Example CSV file:
Name,Email,TeamName,ParentTeamName,Membership Visibility,Membership Type,Country
Stephanie,user1@email.com,team1,,Yes,Contributor,USA
Arya,user2@email.com,team1,,No,Viewer,India
Ben,user3@email.com,team2,team1,Australia
Devon,user4@email.com,team1,,No,Scotland
Alex,user5@email.com,team1,Inherit,Viewer,CanadaBulk importing teams via the API
To bulk import teams using the Team membership API:
Create an API key. To learn more about creating an API key, see Flow REST API introduction.
Make a
POSTrequest using the following URL:https://<workspace>.appfireflow.com/v3/customer/core/team_membership/bulk_import/
Choose the CSV file you created.
Specify the
import_typeas eitheroverwriteorupdate.Set any additional parameters for your upload. Find these additional parameters below.
Click Send.
Additional parameters for overwrite:
add_new_apex_usersremove_membershipsremove_empty_teamsremove_teams
Additional parameters for update:
add_new_apex_users
Additional parameter details:
Name | Type | Description |
|---|---|---|
| file | Required, CSV file of teams, team memberships |
| string | Required, overwrite or update |
| boolean | True/false |
| boolean | True/false (only with overwrite) |
| boolean | True/false (only with overwrite) |
| boolean | True/false (only with overwrite) |
To verify that your CSV import was successful, find your upload in the team import history page.
Bulk importing teams using the Teams page
To bulk-import teams using the Teams page:
Go to Settings > User Management > Teams.
Click Import Teams .
Click the CSV button in the top right. To import your teams from GitHub or ADO services, use the Integration import option. A Bulk import teams modal displays.
On the modal, you have several options:
Click Download current team structure if you want to download the most up-to-date file with teams. You can then review and update it if needed. If you are a new user and have no teams in Flow yet, this option will download a file with empty columns but with the required headings. You can then populate it with teams data.
Click Update user attribute configuration if you want to change or review your user attributes configuration. This option opens the User attribute page in a new window.
Be sure the attributes in your file match exactly those you defined in Settings.
Remember to add a comma between multiple values when using multi-select for a custom attribute.
Double-check if the comma delimiter is placed between the individual values. Attributes with typographical errors, such as “Ja,va,” will not be imported (since the “Ja” and “va” attribute values do not match the programming language names configured in Settings).
Click Bulk import with AI transformation if you have a file from another source (for example, Workday) and would like to adjust it to Flow’s format using AI.
The Bulk import with AI transformation feature is currently in closed beta.
If you choose to use AI to help you format your CSV file:
a). On the AI Transformations modal, click New Transformation.
b). The AI Transformation Preview modal displays. Click Choose the CSV to add a file you want to use for future team import.
c). The AI Transformation Preview displays up to the first ten users in your file. The changes (transformations) you introduce in this file preview apply to all users.
In this preview, the Flow CSV headers show optional and required (marked with an asterisk) headers in Flow. The Imported CSV headers are the headers from the source app (in this example, from Workday).
AI matched the Workday headers with the Flow ones. You can open a dropdown for each imported CSV header to see if there is a better header to match.
When data is pre-filled, it indicates the AI has high confidence that your source file columns align with Flow’s expected format. For example, standard identifiers like Name and Email are typically matched automatically with high accuracy.
If the AI is uncertain about a data mapping, it will flag the entry with a yellow exclamation mark or a red outline, prompting you to review or manually correct the selection.
Examples
AI suggestion | Explanation |
|---|---|
The AI has identified the Teams header within your Workday file and requires confirmation to proceed. To validate this mapping, click the checkmark button; the AI will then begin processing the underlying data based on your selection. | |
AI has found a potentially matching header but is unsure how to map it. The tooltip suggests mapping source numeric values to default user attribute values. Click the pen icon if you want to edit the rule. For example: “Map 4 to Middle, 5 to Senior, 6 to Principal” or “4 → Middle, 3-> Senior, 6-> Principal.” Otherwise, click the yellow exclamation mark and confirm. Next, AI will process the data under the imported header based on that rule. The user attributes you can see on the preview are the user attributes currently set for your organization. If no attributes were configured for your organization yet, the CSV preview displays only default attributes. Click the Update user attribute configuration button in the top-right corner. This will take you to the User attributes configuration page where you can manage the existing attributes and add new ones. | |
AI has not found any matching imported header for the required column. If none of the other headers match and the column is required, you will need to update the file to include the missing data. And then, re-upload it for a new transformation. | |
AI has found a potentially matching header but is unsure how to map it. Use the “yes,” “no,” or “inherit” options to map “Yes” and “No” from the source file. For example: “Yes → inherit, No → inherit.” This is a non-required column. If you leave it as it is, all users will be mapped to “inherit” by default. | |
In this example, AI has found a potentially matching header but is unsure how to map it. Use source-specific values to map users to contributors or viewers, or a more general prompt to process the transformation. For example: “Map all to contributor.” This is a non-required column. If you leave it as it is, all users will be mapped to “contributor” by default. | |
AI has not found any matching imported header for the non-required column. You can select one manually or leave it as it is. Unmapped headers are excluded from the import. |
When creating a value mapping rule for any column, you can use microprompts written in natural language. If the tooltip suggests specific values to use, be sure to type them exactly as they appear (they are case-sensitive).
After you enter your prompt, AI may require further input from you. In such a case, the header will again be marked with a yellow exclamation mark. Type in another prompt to resolve it. Or, if it’s a non-required column, you can leave it as it is.
Note that you cannot proceed with the transformation unless you have resolved all issues in the required fields. You can leave unresolved issues in the non-required columns. In such a case, the column will be excluded from the import.
d). Click Next.
e). You are back on the AI transformations modal, where you can see a list of your transformed CSV files.
Download the file you have just transformed. Note that only the files with a Finished status are ready for download. Click New Transformation to process another CSV file with an AI, or Back to return to the Bulk import teams modal.
In the Bulk import teams modal, select your file using the Choose CSV button. A CSV import selections modal displays.
On this modal, you can:
Select Update existing teams to add any new teams and team members from your file, but will not remove or edit any teams that are not explicitly included in the file. With Additional actions, you can:
Check Add user if not found to add users included in your file but not found in Flow.
Check Update user attributes to update user attributes (leave blank if you upload teams with user attributes for the first time).
Select Completely overwrite teams to replace the current team setup with the one you created within the CSV file. For the overwrite option, you can fine-tune what you want to keep and what you want to officially overwrite with Additional actions:
Add user if not found
Update user attributes
Remove teams not in CSV file
Remove memberships not in CSV file
Remove teams with no members
On the Confirm bulk import screen, review your import settings and confirm with Import CSV. Otherwise, click Back to make changes.
This starts the import and takes you to the Team import history page.
Check the status of your recent import in the Status column:
If the import is still processing, the status will be Queued.
If there are no errors in the CSV and the import is successful, the Status column shows Success.
If there are errors in the import, a Partial Success or Failed status appears in the Status column.
Mouse over the finished status (Partial Success, Success, or Failed) to review your import.
Check the status of the attributes import in the Attributes Update column.
If there are no errors in the CSV and the import is successful, a Success status icon appears in the Attributes Update column.
If there are errors in the import, a Partial Success or Failed status icon appears in the Attributes Update column. Click the Details link next to the status icon to review the errors.
If the team import was Failed or Partial Success, Flow creates an updated CSV file including any errors during the import process. Click the download button next to your specific import to download a copy of the updated CSV file.
Bulk importing multi-tiered nested teams
When importing teams with multiple nested team levels, use the ParentTeamName column to associate each nested team with to most immediate parent team.
If one or more parent teams have nested users but no native users, you may need to add a fake user to the empty team to recreate the hierarchy.
Alternatively, manually create any empty teams after you import your file, then nest the nested teams.
Example Team Structure:
King of the Castle: 0 users, 10 nested users
Front End: 0 users, 10 nested users
FE A: 2 users, 0 nested users
FE B: 1 users, 2 nested users
FE B1: 2 users, 0 nested users
In the above team structure, the top two team levels, King of the Castle and Front End, do not have any native users.
In this case, Flow creates the Front End team because of its immediate association to its nested teams, FE A and FE B. The main parent team, King of the Castle, must be added manually.
Alternatively, a user must be added to either the King of the Castle or to the Front End team.
The image below shows what the file looks like without adding an additional user, fake or otherwise:
To create the top-level team, add the team to the file:
Line 7 adds a user directly to the top parent team.
Line 8 adds a user directly to the Front End team, thereby associating Front End to the parent team.
Once you have your team structure mapped out in your file, follow the steps in the previous sections to upload and import it.
