<< Click to Display Table of Contents >> Admin configuration > Getting started > How to add users > How to import users from JSON |
General
JSON import supports users import from a text file in a JSON format. For example:
[
{
"user_name": "alex"
},
{
"user_name": "john",
"password": "qwerty",
"status": "active",
"is_admin": true,
"regular_in_rooms": [1, 2, 3],
"moderator_in_rooms": [4, 5],
"properties": {
"title": "Dr.",
"first_name": "John",
"last_name": "K.",
"middle_name": "Smith",
"nickname": "Jonny",
"date_of_birth": "10/26/1990",
"job_title": "Director",
"job_department": "Sales",
"job_description": "Development of sales strategy",
"phone_number": "+1234567890",
"email_address": "jonny@qweedcxzas.com",
"social_profile_url": "https://www.linkedin.com/",
"postal_address": "123 ABC Str."
}
}
]
To import a JSON file with users Virola admin should do the following:
1.Convert users from the database to JSON format like shown on the above example
2.Follow Administration / Manage Users
3.Click "Import" link
Import users from JSON
4.Select JSON file which should be imported and click "Next"
Select JSON file with users
5.Click "Import" button to start users import process
Start users import from JSON
All users and user fields which are added to the JSON file in the wrong format will be ignored