AnsweredAssumed Answered

Import Users Into Alfresco (.xml file)

Question asked by joaotpd on May 6, 2009
Latest reply on Feb 18, 2010 by wesse
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… ;)

João Duarte

Outcomes