cancel
Showing results for 
Search instead for 
Did you mean: 

Problem w/ user groups import (missing APP.DEFAULT,AUTH.ALF)

mathias_lin
Star Contributor
Star Contributor
I'm running two Alfresco 3.2r2 systems and want to export the users and user groups from one installation (let's name it system A) to the other (system B). For this (in this sample, the user groups), I run the command line export/import tool like:

System A:
org.alfresco.tools.Export -user admin -pwd admin -s workspace://SpacesStore -path /sys:system/sys:authorities -verbose -overwrite spacesStore-authorities

System B:
org.alfresco.tools.Import -user admin -pwd admin -uuidBinding REPLACE_EXISTING -store workspace://SpacesStore -path /sys:system/sys:authorities -verbose spacesStore-authorities.xml

The output log for shows me that there was no error and the user groups have been imported.

Nevertheless:
when I login into System B, I do not see the newly imported user groups under admin / manage user groups. I only see the old groups that were already in system B but not the newly imported ones. But I do see them in the node browser when browsing to SpacesStore/system/authorities

In order to understand why they're not displayed although they are there, I compare the properties and see that in system B (as opposed to the original system A), the user groups don't have the following parents assigned to it:

GROUP_AUGUS_MANAGER   workspace://SpacesStore/AUTH.ALF   false   inZone
GROUP_AUGUS_MANAGER   workspace://SpacesStore/APP.DEFAULT   false   inZone

So I wonder, how do I tell the export/import to keep these two values assigned to the user groups as well? I didn't see any of it in the export xml when looking into it via text editor.


Thanks for any hint!
2 REPLIES 2

joe_l3
Confirmed Champ
Confirmed Champ
Hello mathias.lin,
I also have the same problem after export groups. I do not see the newly imported user groups under "Manage User Groups" console, but I do see them in the node browser when browsing to SpacesStore/system/authorities
But let me add one other point about the "Association Type". I simulated export process groups between a system A and system B. Here's what I noticed

In the node browser when browsing to SpacesStore/system/authorities:
SYSTEM A
[img]http://www.freeimagehosting.net/uploads/16499b41c8.jpg[/img]
SYSTEM B
[img]http://www.freeimagehosting.net/uploads/b5b7b9cdf2.jpg[/img]

When I click the TEST1 group
SYSTEM A
[img]http://www.freeimagehosting.net/uploads/d49a8c3e1f.jpg[/img]
SYSTEMB
[img]http://www.freeimagehosting.net/uploads/cb7520876e.jpg[/img]
Why "Association Type" has changed from "sys:children" in "children" ?
Why TEST1 did not assign the parents AUTH.ALF and APP.DEFAULT ?

mathias.lin, I've seen your post  here: http://forums.alfresco.com/en/viewtopic.php?f=6&t=21604&p=85454&hilit=export+groups#p85454 .Have you solved the problem ?
:?:
joe.l3

mathias_lin
Star Contributor
Star Contributor
Hi Joe,
yes, meanwhile I found a solution to the problem. Problem is that whenever you setup a new Alfresco system, it will use different UUIDs for the system nodes, like people, authorities, workflows, etc.

Therefore there are two solutions to the problem:

1) when you setup two Alfresco servers that should do export/import between each other, you should install the first Alfresco server, then just copy this clean installation (webapp + database) to your second server. This way you will work with the same UUIDs.

2) In case you already have two servers running and cannot set them up again, as I did in my case, I run a string replacement on the exported xml files before importing them to the second server: I gather the relevant UUIDs from server1 and replace them in the xml export files with the UUIDs of server2. This way it works fine.
The relevant UUIDs you need to gather are those of:
* people, authorities, zones, workflow under workspace://SpacesStore
* guest and admin UUID from workspace/SpacesStore (under people)
* the admin user UUID from user://alfrescoUserStore


Furthermore, actually I ended up with simply export/importing everything under system, which means: -path /sys:system (instead of /sys:system/sys:authorities), to make sure I get everything I need.

This has worked for me.

(side note: if you want to do partly export/import, this command line exporter is ok, otherwise if you want to do a full replication of the entire server, I'd switch to rsync anyway.)

Mathias