Expand my Community achievements bar.

User Permissions Packaging

Avatar

Former Community Member

Hi All,

I have a requirement where I need to add an user group created by me to the Administrator Group. I am able to do that in my local through the useradmin console. Now I need to package the permissions package and install it into the various other environments. I tried using ACS-Commons ACL Packager and also http://www.hsufengko.com/home/copy-users-groups-permissions-acls-between-adobe-cq-instances to create the package but this particular action is not captured.

I believe this might be because the above two approaches only create a package of all the rep:ACL nodes. Can anyone provide guidance as to how the action is stored when I add a group as member of another group and how may I create a package for the same.

Any help would be highly appreciated.

5 Replies

Avatar

Level 7

You can refer Migrate user with ACL permissions

All such permission goes under rep:policy node.

Avatar

Former Community Member

Hi Ankur,

If I create a package based on the url suggested by you it will try to replace all the users and gives exception as : javax.jcr.nodetype.ConstraintViolationException: OakConstraint0027: The admin user cannot be removed.

Also as mentioned in the comments this doesn't seems to replicate the ACLs.

Kindly suggest a solution for the same.

Thanks & Regards
Ashish Ranjan 

Avatar

Level 7

You need to exclude admin user when you are making package.

Go to user admin look for path of admin user and exclude it. Then it will work.

Avatar

Administrator

Ashish_Ranjan wrote...

Hi Ankur,

If I create a package based on the url suggested by you it will try to replace all the users and gives exception as : javax.jcr.nodetype.ConstraintViolationException: OakConstraint0027: The admin user cannot be removed.

Also as mentioned in the comments this doesn't seems to replicate the ACLs.

Kindly suggest a solution for the same.

Thanks & Regards
Ashish Ranjan 

 

Hi

Please have a look at the forum old thread to help you:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

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

 and  exclude admin user and tokens using Package Manager filter.

~kautuk



Kautuk Sahni

Avatar

Level 7

Hi Ashish,

I can see that your issue is resolved as you have stated on facebook post, could you please share the steps here so that it will be useful for other community members also.