Skip to main content
Adobe Employee
Nov 9, 2015 1:44 AM UTC
Solved

problem migrating users/groups aem 6.1

hello, when trying to migrate a set of users and groups I get this error in package manager:

"org.apache.jackrabbit.vault.packaging.PackageException: javax.jcr.nodetype.ConstraintViolationException: OakConstraint0027: The admin user cannot be removed.

 

Am hoping someone has a set of guidelines for migrating users from one 6.1 author to another.

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kautuk_sahni
kautuk_sahniAccepted solution
Level 9
Nov 10, 2015 7:35 AM UTC

This is a constraint, please have a look at the documentation :- https://jackrabbit.apache.org/oak/docs/security/user.html

 and as mentioned by Sham and Opkar, exclude admin user and tokens using Package Manager filter.

I hope this would help you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni

6 replies

Sham_HC
Level 10
Nov 9, 2015 3:14 AM UTC

Exclude admin user using package manager filter.

Translate
Adobe Employee
Nov 9, 2015 4:27 PM UTC

Also, make sure ".tokens" are excluded from all the user folders

Regards,

Opkar

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Level 9
Nov 10, 2015 7:35 AM UTC

This is a constraint, please have a look at the documentation :- https://jackrabbit.apache.org/oak/docs/security/user.html

 and as mentioned by Sham and Opkar, exclude admin user and tokens using Package Manager filter.

I hope this would help you.

Thanks and Regards

Kautuk Sahni

Translate
Kautuk Sahni
Level 2
Sep 19, 2016 12:13 PM UTC

Do you have a definitive guideline over it?

Translate
Adobe Employee
Sep 19, 2016 5:09 PM UTC

Something like this should be followed

Below are the exclude filters

Exclude tokens, excluding admin and anonymous user

     
exclude/home/users/.*/.tokens
     
exclude/home/users/Q/QY5FIMXeQIbGpwZtQ3Dv
     
exclude/home/users/K/Kj1406Qo9IDODc_nk5Ib

 
/home/users/Q/QY5FIMXeQIbGpwZtQ3Dv – admin user on the system where I am creating the package
/home/users/K/Kj1406Qo9IDODc_nk5Ib – anonymous user on the system where I am creating the package 
 
Translate
Adobe Employee
Sep 19, 2016 5:30 PM UTC

see step 6) from https://gist.github.com/andrewmkhoury/280c6d0ac1db03b57c58 for detailed steps.

Translate