In Alfresco we can set requirements various times where we want to create multiple users and groups in system, in that case it is rather tedious to create each users and then create groups one by one in system using the given user creation and group management console.
In this case we can use the bulk user and group creation feature of Alfresco where we can put all the information related to user and group in a CSV file and then import that CSV file in Alfresco and we are done.
Steps for User Import through CSV are as follow:
Create CSV file which looks like below
You just need to have header with given fields and then add user information in below rows.
User Name,First Name,Last Name,E-mail Address,,Password,Company,Job Title,Location,Telephone,Mobile,Skype,IM,Google User Name,Address,Address Line 2,Address Line 3,Post Code,Telephone,Fax,Email
CSV content in your notepad will look like this
User Name,First Name,Last Name,E-mail Address,Password,Company,Job Title,Location,Telephone,Mobile,Skype,IM,Google User Name,Address,Address Line 2,Address Line 3,Post Code
Mit,mit,test,email@example.com,mit,MyComp,Consultant,,,,,mitpatoliya,,,,, Test1,Test1,test,Test1@test.com,Test1,MyComp,Consultant,,,,test1,,,,,, Test2,Test2,test,firstname.lastname@example.org,Test2,MyComp,Consultant,,,,test2skype,,,,,, Test3,Test3,test,email@example.com,Test3,MyComp,Consultant,,,,,,,,,, Test4,Test4,test,firstname.lastname@example.org,Test4,MyComp,Consultant,,,,,,,,,, Test5,Test5,test,email@example.com,Test5,MyComp,Consultant,,,,,,,,,,
Login as Admin in Alfresco Share
Go to Admin Console>Users
There is a button called “Upload User CSV File” Click on that.
Select CSV file created in step1 and click on ok
You should be able to see screen similar to following screen which shows details regarding imported users. If there are any error exist in csv file it will show error on User Interface.
That’s it you are done with import of users in Alfresco. This will also be helpful in case where you have multiple difference instance of Alfresco to setup.