내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

problem migrating users/groups aem 6.1

Avatar

Level 2

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

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Administrator

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 답변 개

Avatar

Level 10

Exclude admin user using package manager filter.

Avatar

Employee

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

Regards,

Opkar

Avatar

정확한 답변 작성자:
Administrator

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

Avatar

Level 2

Do you have a definitive guideline over it?

Avatar

Employee

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 
 

Avatar

Employee

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