cancel
Showing results for 
Search instead for 
Did you mean: 

Import Users Into Alfresco (.xml file)

joaotpd
Champ on-the-rise
Champ on-the-rise
Hi all!

I'm using alfresco-labs-tomcat-3Stable on Linux.
I'm trying to import users through a xml file:
people.xml
<?xml version="1.0" encoding="UTF-8"?><view:view xmlns:d="http://www.alfresco.org/model/dictionary/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0" xmlns:view="http://www.alfresco.org/view/repository/1.0">  <cm:person view:childName="cm:person">    <cm:userName>test01</cm:userName>    <cm:firstName>firstNametest01</cm:firstName>    <cm:lastName>lastNametest01</cm:lastName>    <cm:middleName></cm:middleName>    <cm:email>test01@somecompany.org</cm:email>  </cm:person>   <cm:person view:childName="cm:person">    <cm:userName>test02</cm:userName>    <cm:firstName>firstNametest02</cm:firstName>    <cm:lastName>lastNametest02</cm:lastName>    <cm:middleName></cm:middleName>    <cm:email>test02@somecompany.org</cm:email>  </cm:person> </view:view>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
I'm not sure where to run the import command and what is the correct command to import users.
I've already tried this (on Linux terminal console placed in /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/):
import -user admin -pwd adminpass -store workspace://SpacesStore -path /sys:system/sys:people people.xml‍
but i'm getting:
import: unable to open X server `'.‍
Anyone with the same problem?! …
Please help!! …
Thanks in advance… Smiley Wink

João Duarte
10 REPLIES 10

wesse
Champ in-the-making
Champ in-the-making
So…

You need to import users both to user://alfrescoUserStore and the workspace://SpacesStore but the groups only to the  user://alfrescoUserStore is that correct ?