By Matt Yiu
Import admin panel users in batch from Excel files with invitation links
released May 28, 2026
npm install strapi-plugin-admin-users-importA Strapi 5 plugin that allows administrators to import admin panel users in batch from Excel files and generate invitation links for each user.
Note: This plugin creates admin panel users (who can access /admin), not frontend API users.
npm install strapi-plugin-admin-users-importImportant: This plugin is only accessible to Super Admin users. No other admin roles can access or use this plugin, regardless of their permissions.
This is a security measure to ensure that batch user creation capabilities are restricted to the highest level of administrative access.
After installation, Super Admin users can navigate to the "Batch Create Users" plugin in the Strapi admin panel. Other admin users will not see this plugin in their menu.
Click the "Download Template" button to get an Excel template with the required format. The template includes the following columns:
Open the downloaded template in Excel or any spreadsheet application and fill in the user information. Each row represents one user to be imported.
After a successful import, you'll see a success message with:
Click this button to download an Excel file containing:
Share the invitation links with your users. When users click their invitation link, they can:
The plugin provides the following endpoints:
GET /admin-users-import/template - Download Excel templatePOST /admin-users-import/import - Import users from ExcelGET /admin-users-import/results/:resultId - Download import resultsGET /admin-users-import/roles - Get available user rolesThe plugin uses your Strapi server URL to generate invitation links. Make sure your config/server.js has the correct URL:
module.exports = ({ env }) => ({
url: env('SERVER_URL', 'http://localhost:1337'),
// ... other config
});npm run buildnpm run watch| firstname | lastname | |
|---|---|---|
| user1@example.com | John | Doe |
| user2@example.com | Jane | Smith |
| First Name | Last Name | Invitation Link | Status | |
|---|---|---|---|---|
| user1@example.com | John | Doe | http://localhost:1337/admin/auth/reset-password?code=... | success |
| user2@example.com | Jane | Smith | http://localhost:1337/admin/auth/reset-password?code=... | success |
server.url is correctly configured in your Strapi configurationMIT
Matt Yiu matt.yiu@wavenex.com.hk
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
