Excel to ACL

Moderators: mandville, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
ShasRises
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Oct 18, 2016 11:06 pm

Excel to ACL

Post by ShasRises » Tue Oct 18, 2016 11:14 pm

Hello,

I have an excel file with a list of over 4000+ entries. I would like to export the file to the ACL list. Is this possible?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Excel to ACL

Post by Webdongle » Wed Oct 19, 2016 1:04 am

What's in the exel file and what ACL list ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

ShasRises
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Oct 18, 2016 11:06 pm

Re: Excel to ACL

Post by ShasRises » Wed Oct 19, 2016 1:13 am

I have a list of over 4000+ entries in an excel file that would be Child User Groups. I have created a Parent Group- "Free user". I would like to import the excel file contents to Joomla user groups that would be listed under the parent group- "Free user".

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Excel to ACL

Post by Webdongle » Wed Oct 19, 2016 8:27 am

Make a backup of your database and keep it safe !!!

The xml file would need to have the columns matching the fields in the #__users table

Code: Select all

`id`, `name`, `username`, `email`, `password`, `block`, `sendEmail`, `registerDate`, `lastvisitDate`, `activation`, `params`, `lastResetTime`, `resetCount`, `otpKey`, `otep`, `requireReset`
Do not label the columns, leave blank columns for all except
  • `name`, `username`, `email`,
  • `password` (you can create the value for that field by creating a user manually and using that data then tell the users to change it)
  • `block` (Value 0 )
  • `sendEmail` (Value 1 )
  • `registerDate` (value in the format of 2016-10-10 01:01:00 )
  • `lastvisitDate` (value in the format of 2016-10-10 01:01:00 )
  • `activation` (Value 1 )
  • `lastResetTime` (value in the format of 0000-00-00 00:00:00 )
  • `resetCount` (Value 0 )
  • `requireReset` (Value 0 )
You can insert the columns in the excel file add the values in the first record then copy/paste each column. Export it as a csv file.

Then use phpMyAdmin to export the #__users table and edit it with the data from the csv file. Use phpMyAdmin to run the edited code as sql in the database.

Then you need the data for the #__usergroup_map
Create an excel sheet with two columns. First column with the newly created ID's, second column the value for your new group (found in 'Title' of #__usergroupmap). Export to a csv file

Use phpMyAdmin to export the #__usergroupmap and edit it with the data from the csv file and then run it as sql in phpMyAdmin.

It is complex and time consuming but quicker than manually adding all those. But you may need to do 50 records at a time because of database restrictions.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Access Control List (ACL) in Joomla! 3.x”