Bulk account creation
In a company with thousands of employees, instead of creating accounts one by one you create them in bulk from a file or from the Employees list. Bulk account creation does three things at once: it creates the account, links it to the employee record and sends the person an invitation email. No password is generated or shown to anyone; everyone sets their own password with the invitation link.
Employees and users
Section titled “Employees and users”An employee (Organization → Employees) is your company’s personnel record; a user (Administration → Users) is an account that signs in to Defthand. For an employee to use the app, they need an account, and the account must be linked to the employee. In the Employees list, those without an account are shown as Not linked. For employee records, see: Organization and personnel.
Two ways
Section titled “Two ways”| Way | Where it starts | Where the email comes from |
|---|---|---|
| From a file | Administration → Users and roles → Users → Import | The file’s email column |
| From employees | Administration → Organization → Employees → select rows → Create accounts for the selected, or Create accounts for everyone without one | The employee’s corporate email |
Each way has its own permission, and neither is in the basic role; the Admin role has both. If you will give the accounts a role other than Basic, you also need the permission to manage user roles.
Creating accounts from a file
Section titled “Creating accounts from a file”1. Download the template
Section titled “1. Download the template”- On the Users page, press Import. The Import users window opens.
- Under 1. Download the template, press Excel template (.xlsx) or CSV template.
The template has no sample rows (a forgotten sample address would become an account). The columns; headers may be in Turkish or English, and order and case don’t matter:
| Column | Required | What to enter |
|---|---|---|
| Yes | The account’s address; the invitation goes here. One row per person. | |
| First name, Last name | Yes, if there is no employee code | Can be left empty if an employee code is given: the employee’s name is used. |
| Employee code | No | The account is linked to the employee with this code. |
| Role | No | The role name (e.g. HR). If empty, the role chosen in the window is given. |
| Unit code | No | The code of an existing organization unit. If the employee is in another unit, the row gets a warning, but the account is still created. |
Rules:
- At most 30,000 rows and at most 10 MB per file.
- A CSV file must be UTF-8 (separated by
;or,). In Excel, save it as CSV UTF-8. - Email addresses must use English letters: an address with Turkish letters such as
ayşe@anadolugida.com.tris treated as invalid.
2. Choose the file
Section titled “2. Choose the file”Under 2. Choose the file, press Choose file. Only an .xlsx or .csv file can be chosen.
3. Options
Section titled “3. Options”| Option | Meaning |
|---|---|
| Role | Given to rows without a role of their own. Every account also gets the Basic role. If you choose Basic only, no extra role is given. |
| Send invitation e-mails | While on, everyone sets their password with the one-time link in the email. When off, the accounts wait without an email being sent (for companies that will sign in with single sign-on); the invitation can be sent later. |
4. Preview
Section titled “4. Preview”Press Preview. Nothing is written yet. The Preview splits the rows into four groups:
| Group | Meaning |
|---|---|
| New accounts | An account that will be created. |
| Linked to an existing account | The address already has an account and the employee on the row has none: the existing account is linked to the employee and no new account is created. |
| Skipped | Nothing to do. |
| With errors | Will not be processed. |
The Rows with problems or warnings table shows the Line, E-mail, Name, Employee code, What happens and Reason columns for each row. The reasons:
| Reason | Outcome |
|---|---|
| No e-mail address / Invalid e-mail address | Error |
| The e-mail appears more than once / The employee code appears more than once | All of them are errors (no guess is made about which one is right) |
| First or last name missing / Name longer than 100 characters | Error |
| Unknown role / This role cannot be given here | Error |
| Unknown unit code / No employee with this code | Error |
| Over the plan’s user limit | Error |
| The employee already has an account / An account with this address already exists | Skipped |
| The address belongs to a portal account / The account belongs to another employee | Skipped |
| The employee has left | Skipped |
| Differs from the employee’s corporate e-mail / The employee is in another unit | Warning; the row is still processed |
In no case is a second account created for the same address, and the roles of an existing account are never changed.
User limit: if your plan has a user limit, the preview says something like “User limit: 180 of 250 in use, 70 left.” Rows over the limit (the last ones, in the file’s order) are refused. When the limit is raised, you can upload the same file again; accounts already created are skipped. Portal accounts don’t count.
Email quota: if invitations will be sent, the remaining email allowance for the month is shown too. Invitations over the quota are not sent that month; this is a warning, and the row is not refused.
5. Start
Section titled “5. Start”Press Create the accounts. The job starts in the background; “The job has started. You can close this window…” appears. The file is checked again on the server; if an account was created in the meantime, that row is skipped.
Creating accounts from employees
Section titled “Creating accounts from employees”- Open Administration → Organization → Employees.
- In the Account filter, choose Not linked; narrow it down with Employment type if you like.
- Two options:
- Tick rows (for all on the page, Select every row on this page) and press Create accounts for the selected (12).
- Or press Create accounts for everyone without one: accounts are created for every active employee without an account that matches the filter.
- In the Create accounts for employees window, choose the role and Send invitation e-mails, preview, and press Create the accounts.
The address is the employee’s corporate email. An employee without a corporate email is counted as an error with No e-mail address: first enter the email in the employee record, or create these people’s accounts from a file with the employee code.
Progress, stopping, results
Section titled “Progress, stopping, results”The Account job view shows progress such as “1,250 of 4,000 rows processed” and the counts: Created, Linked, Skipped, Failed, Invited. Statuses: Queued, Running, Completed, Cancelled, Failed.
- Closing the window doesn’t stop the job. You come back to it from the Account jobs list on the Users page (Show jobs) and open it with Details. The list has the Started, Started by, Source (File / Employees), Status and Outcome columns.
- Only one job runs at a time: “Another account job is still running. Wait for it to finish or stop it.”
- Stop the job: the job finishes the current batch of 200 rows and stops; rows not reached are skipped with “The job was cancelled”. Accounts already created stay.
- Download results (.xlsx): an Excel file with every row, its outcome and the reason.
- Result rows (addresses, names) are deleted 30 days after the job ends; the job itself and its counts stay in the list.
A 25,000-row job takes a few minutes. Invitation emails go out at the speed of your email provider.
Invitations
Section titled “Invitations”- The account is created without a password, inactive, with an unconfirmed email, in the Invitation pending state.
- The person sets their password with the Set my password link in the email; the account becomes active and they are taken to the sign-in page (the organization code is filled in from the link). The link works once and is valid for 7 days.
- Resending: for one person, Users → the person → Resend invitation; for everyone still waiting in a job, Resend invitations to those waiting in the job view. Once the new link goes out, the old one stops working.
- Deactivating the account ends the pending invitation.
- The invitation doesn’t bypass two-step verification.
Creating accounts without an invitation is for companies that will use single sign-on: people sign in with SSO without setting a password, and the account becomes active at the first SSO sign-in (SSO accounts). Until SSO is switched on, these accounts cannot sign in; if you like, you can send invitations later with Resend invitations to those waiting.
Example: Anadolu Gıda’s production plant
Section titled “Example: Anadolu Gıda’s production plant”You are going to create accounts with the Inspector role for the 420 employees at the Bursa plant:
- Download the template and fill it in:
ayse.yilmaz@anadolugida.com.tr, Ayşe, Yılmaz,S-10482, empty role, unit codeBRS-URT… - In Import, choose the file; Role: Inspector; Send invitation e-mails on.
- Preview: 412 new accounts, 5 to be linked, 3 with errors (invalid email). You can fix the rows with errors in the file and upload it again later.
- Create the accounts. A few minutes later the job is Completed; keep the record with Download results (.xlsx).
You don’t need bulk creation to add a single person: Adding a user.