cancel
Showing results for 
Search instead for 
Did you mean: 

Export and Import users and groups

kaiou
Champ in-the-making
Champ in-the-making
Hallo

i want to clone an alfresco system (upgrated to 3.3) with more documents into a new alfresco installation of same version.

i follow this step:
1. Export the users from the user://alfrescoUserStore. This will generate an alfrescoUserStore-people.xml file. Command: export -user admin -pwd <PROTECTED> -s user://alfrescoUserStore -path /sys:system/sys:people -verbose alfrescoUserStore-people
2. Remove the 'admin' account from alfrescoUserStore-people.xml
3. Export the groups from the user://alfrescoUserStore. This will generate an alfrescoUserStore-authorities.xml file. Command: export -user admin -pwd <PROTECTED> -s user://alfrescoUserStore -path /sys:system/sys:authorities -verbose alfrescoUserStore-authorities
4. Export the users from the workspace://SpacesStore. This will generate an spacesstore-people.xml file. Command: export -user admin -pwd admin -s workspace://SpacesStore -p /sys:system/sys:people -verbose spacesstore-people
5. Remove the <cm:person> element for the "admin" and "guest" accounts from the spacesstore-people.xml file.
6. Copy alfrescoUserStore-people.xml, alfrescoUserStore-authorities.xml and spacesstore-people.xml to the target Alfresco system.
7. Import the users into user://alfrescoUserStore. Command: import -user admin -pwd <PROTECTED> -s user://alfrescoUserStore -p /sys:system/sys:people -uuidBinding UPDATE_EXISTING -verbose alfrescoUserStore-people
8. Import groups into user://alfrescoUserStore. Command: import -user admin -pwd <PROTECTED> -s user://alfrescoUserStore -p /sys:system/sys:authorities -uuidBinding UPDATE_EXISTING -verbose alfrescoUserStore-authorities
9. Import users into workspace://SpacesStore. Command: import -user admin -pwd <PROTECTED> -s workspace://SpacesStore -p /sys:system/sys:people -uuidBinding UPDATE_EXISTING -verbose spacesstore-people
10. Restart Alfresco where the users were imported.

i have error at point 8

this is error:
Alfresco Repository Importer
Connected as admin
Time to login 68.63162 seconds
Importing from package /Users/michele/Desktop/alfrescoUserStore-authorities.xml
Failed to import package due to Path /sys:system/sys:authorities within node user://alfrescoUserStore/4bb26ad0-f037-41fd-aee8-1fa7e085a532 does not exist - the path must resolve to a valid location caused by: Path /sys:system/sys:authorities within node user://alfrescoUserStore/4bb26ad0-f037-41fd-aee8-1fa7e085a532 does not exist - the path must resolve to a valid location
org.alfresco.tools.ToolException: Failed to import package due to Path /sys:system/sys:authorities within node user://alfrescoUserStore/4bb26ad0-f037-41fd-aee8-1fa7e085a532 does not exist - the path must resolve to a valid location
   at org.alfresco.tools.Import.execute(Import.java:229)
   at org.alfresco.tools.Tool.start(Tool.java:226)
   at org.alfresco.tools.Import.main(Import.java:60)
Caused by: org.alfresco.service.cmr.view.ImporterException: Path /sys:system/sys:authorities within node user://alfrescoUserStore/4bb26ad0-f037-41fd-aee8-1fa7e085a532 does not exist - the path must resolve to a valid location
   at org.alfresco.repo.importer.ImporterComponent.getNodeRef(ImporterComponent.java:261)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:227)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:43)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:135)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy83.importView(Unknown Source)
   at org.alfresco.tools.Import.execute(Import.java:225)
   … 2 more

i don't understand what is the problem..
there is an unavailable item?

i have imported old custom users main folder, but i don't imported all documents.
On folders document are setting all roles permission (on groups)

what is best procedure to clone two installation and mantain users, groups, documents and permissions?
5 REPLIES 5

kaiou
Champ in-the-making
Champ in-the-making
help pleaseSmiley Happy

i am trying all method, import class and api..
but no solution found..


with api i don't know how to set password.. and users imported are not able to logging..
with import class, authorities are not imported..

kaiou
Champ in-the-making
Champ in-the-making
Update:
this steps (without 8..) import correctly users..

but i need groups…

burdat
Champ in-the-making
Champ in-the-making
Hi,

I tried to do the same process and i found, that authorities are moved from user://alfrescoUserStore
to workspace://SpacesStore/.

Try to change target store in step 8.

joe_l3
Confirmed Champ
Confirmed Champ
Hi,
I tried to do the same process and i found, that authorities are moved from user://alfrescoUserStore
to workspace://SpacesStore/.
Try to change target store in step 8.
Also try to change target store in step 3 !
From:
3. export -user admin -pwd <PROTECTED> -s user://alfrescoUserStore -path /sys:system/sys:authorities -verbose alfrescoUserStore-authorities
To:
3. export -user admin -pwd <PROTECTED> -s workspace://SpacesStore -path /sys:system/sys:authorities -verbose alfrescoSpaceStore-authorities

dhruva
Champ in-the-making
Champ in-the-making
Hi All,

I am new to alfresco, please let me know the details steps for exporting the users with roles from alfresco.

Is it possible to automate export job.