Skip to main content

Import and export users in bulk

Create or edit several internal users in a single operation with the XLS import: start from the export, discover the file columns, define roles and access perimeters, and fix import errors.

The XLS import lets you create or edit several internal users in a single operation from an Excel file, instead of entering them one by one in the application. It is particularly useful for setting up the accounts of an entire team or a new perimeter. This article is intended for pilots in charge of user management.

In this article, you will find how to get the import file from the export, what each column contains, how to define each user's role and access perimeters, and how to fix import errors.

A few terms used in this article:

  • Internal user: a user who belongs to your organization. Only internal users are covered by the import and the export.

  • External user: a user invited on an occasional basis, for example a supplier or a consultant. They cannot be created through the import.

  • Perimeter: an entity of your organization in the tree.

  • Grouping: a level of the tree that brings several perimeters together.

  • Root: the highest level of the tree.

  • Role: pilot, contributor or auditor. It determines the user's permissions. Please refer to this article for more details on the 3 roles.

  • Access perimeters: the perimeters and groupings on which the user exercises the permissions of their role.

1. Export your users to get the import file

The users export file serves as a template for the import: it has exactly the expected structure. You can use it as is to edit your existing users, or add rows to it to create new users.

To export your users:

  1. Click the Settings icon ⚙️, then Users.

  2. Click the double-arrow button at the top right.

  3. Choose the users export option.

The generated file is named Tenacy_User_Export followed by today's date (DD-MM-YYYY format). It contains two sheets:

  • Data: the sheet to fill in, with one row per user and 14 columns (one per field of the user profile).

  • Instructions: the filling rules, the description of each column and the accepted values, in French and in English.

The export contains all internal users, whatever their status: enabled, disabled or archived. The status of each user appears in the Status column. External users do not appear in the export.

⚠️ If the Instructions sheet of the file differs from this article, follow the guidance in this article.

2. Prepare your import file

Your file must follow these rules:

  • Specify one user per row.

  • Fill in the required fields: initials, email and role. First name and last name are optional.

  • Limit initials to 3 characters maximum.

  • Keep the column headers and their order exactly as they appear in the export file.

  • Enter limited-choice values (language, MFA, status, role) exactly as they are written in this article.

💡 If the email address of a row matches an existing user, that user is edited with the values in the file. Otherwise, a new user is created.

The 14 columns of the file

The table below describes each column of the Data sheet, in the file's order:

Column

Required

Expected value

Firstname

No

User's first name

Lastname

No

User's last name

Initials

Yes

User's initials, 3 characters maximum

Email

Yes

User's email address

Language

No

User's language: fr or en

MFA

No

MFA (multi-factor authentication) mode: USER_CHOICE, DISABLED or ENFORCED

Status

No

User status: ACTIVE, LOCKED or ARCHIVED

Weekly digest

No

Y to send a weekly summary by email, N otherwise

Receive notifications

No

Y to send notifications to the user, N otherwise

Title

No

User's job title

Role

Yes

User's role: pilot, contributor or auditor (see section 3)

Functions

No

User's functions

Authentication

No

PASSWORD, or the name of a SAML authentication already configured in Tenacy

Attachments

No

Identifier(s) of access perimeters and/or groupings, or ROOT for the root. Multiple values are separated by a comma (see section 3)

💡 The Attachments column of the file corresponds to the "Access to" field of the user profile and of the users list. Not to be confused with the "Access" tab of the user profile, which defines the accessible modules.

Accepted values for limited-choice columns

Language:

  • fr: French.

  • en: English.

MFA:

  • USER_CHOICE: the user chooses whether or not to enable MFA.

  • DISABLED: MFA is disabled.

  • ENFORCED: MFA is mandatory.

Status:

  • ACTIVE: enabled user.

  • LOCKED: disabled user. They can no longer access your environment and still count toward user quotas.

  • ARCHIVED: archived user. They no longer count toward user quotas.

Authentication:

  • PASSWORD: the user logs in with a password. MFA applies according to the value of the MFA column.

  • Name of a SAML authentication: the user logs in through your identity provider. The SAML configuration replaces the password and MFA, which cannot be used with SAML. The name entered must match a SAML configuration already created in Tenacy.

3. Define each user's role and access perimeters

The Role and Attachments columns determine what each user can do and on which part of the tree.

Role is required and takes one of the following three values:

  • pilot: pilot. Administrator role, who can create, assign and delete objects.

  • contributor: contributor. They only have access to the objects directly assigned to them on their access perimeters.

  • auditor: auditor. They have read-only access.

⚠️ For the pilot role, enter pilot. The value admin, which may appear in the Instructions sheet of the file, is not accepted.

⚠️ A user's role is global: it applies to all the perimeters and groupings listed in the Attachments column. It is not possible, within a single row, to give a user the pilot role on one perimeter and the contributor role on another.

Attachments indicates the user's access perimeters, by their identifier:

  • A single perimeter or grouping: enter its identifier, for example PE20.

  • Several perimeters and/or groupings: enter their identifiers separated by a comma in the same cell, for example SUD3,CORP.

  • The whole organization: enter ROOT, which designates the root.

  • Empty cell: the user has access to no perimeter.

⚠️ If you leave the Attachments column empty, the user is imported with no access: "No access" is displayed in the "Access to" column of the users list. Contrary to what the Instructions sheet of the file may indicate, they are not associated with the root. To give access to the whole organization, enter ROOT.

To find the identifiers of your perimeters and groupings, use the perimeters export: in the Organization module, click the double-arrow button, then Export perimeters/groupings XLS.

Configuration examples:

  • Local pilot on two perimeters: Role = pilot, Attachments = SUD3,CORP.

  • Contributor on a single perimeter: Role = contributor, Attachments = PE20.

  • Auditor on the whole organization: Role = auditor, Attachments = ROOT.

4. Import your users file

Once your file is prepared, import it into your organization:

  1. Click the Settings icon ⚙️, then Users.

  2. Click the double-arrow button at the top right.

  3. Click Import XLS.

  4. Select your import file.

Fix import errors

If a row contains an error, the import displays a message with the number of the row concerned, and imports the other users in the file. Fix the rows in error in your file, then import it again.

The most common messages:

  • Initials cannot exceed 3 characters: the initials are longer than 3 characters. Shorten them.

  • Missing initials: the Initials column is empty. Fill in the user's initials.

  • Email is not properly formatted: the email address is not valid. Check how it was entered.

  • Attachment [identifier] not found: the identifier entered in the Attachments column does not match any perimeter or grouping. Check it in the perimeters export.

The role is also required: a row without a role is in error.

What you get after the import

Once the import is finished, the users in your file appear in the users list (⚙️ > Users):

  • Their status (enabled, disabled or archived) matches the one in the file. Since the list shows active users by default, use the “Status” filter to find disabled and archived users.

  • Their access perimeters are displayed in the "Access to" column.

  • Their first name, last name, role, language, notification preferences and authentication mode match the values in the file.

If you did not fill in the first name and last name, you can complete them by clicking the user in the list, from their profile. You can also restrict their access to modules in the "Access" tab.


Frequently asked questions

Can I use the users export file to prepare my import?
Yes. The export has exactly the structure expected by the import. You can edit existing rows or add rows for new users.

Can I import external users?
No. The import only creates internal users, and the export does not contain external users. To give a supplier or a consultant access, invite them from "Add a user" then "Give access to an external user".

Which fields are required in the import file?
Three fields are required: Initials (3 characters maximum), Email and Role. First name and last name are optional. All other columns are also optional.

What happens if the email address already exists?
The corresponding user is edited with the values in the file. No duplicate is created.

What happens if a row contains an error?
A message indicates the row number and the nature of the error. The other users in the file are imported. Fix the row in error, then import the file again.

Can I import an archived user?
Yes. Enter ARCHIVED in the Status column. The user appears with the “Archived” status in the users list, which you can find with the “Status” filter.

Which value should I enter for the pilot role?
Enter pilot. The value admin is not accepted, even though it appears in the Instructions sheet of the file.

How do I give a user access to several perimeters?
In the Attachments column, enter the identifiers of all the perimeters and/or groupings concerned, separated by a comma in the same cell, for example SUD3,CORP. The user's role applies to all of these perimeters.

Can I give a user a different role depending on the perimeter?
No. The role indicated in the import is global: it applies to all the perimeters and groupings in the Attachments column.

What happens if I leave the Attachments column empty?
The user is imported with no access: "No access" is displayed in the "Access to" column. To give them access to the whole organization, enter ROOT.

How do I import a user who logs in via SAML?
In the Authentication column, enter the name of the SAML configuration already created in Tenacy, instead of PASSWORD. SAML replaces the password and MFA.

Did this answer your question?