Skip to main content
Level 8
Mar 5, 2016 2:23 AM UTC
Solved

ACL Packaging

Hi all,

I created a user rn.

Made him a member of workflowusers group and offered read access to only two nodes, /apps/emitra and /content/emitra. Wanted to migrate this user with ACLs to a different AEM instance.

Installed acs-aem-commons-content-2.3.0-min.

In the acl packer, specified rn as principle and added /apps/emitra and /content/emitra paths and checked includePrincipals. Using Package Manager, built the package and downloaded. PFA the package. Renamed .zip extension with .txt .

Using Package Manager, uploaded this package and installed in the target AEM instance. User rn was created. But acls and group info did not get copied.

Please suggest ASAP.

Appreciate your help.

Thanks, Rama.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
nsvsrkAccepted solution
Level 8
Mar 7, 2016 11:29 AM UTC

Hi all,

This issue was resolved and I was able to package ACLs using acs-aem-commons.

The problem was that the Include Paths was getting pre populated with 2 paths by default.

specified rn as principle and removed these two entries.

It packaged all paths for the principle rn nicely.

I could try to help, if anyone gets in to a similar issue.

Thanks,

Rama.

7 replies

Mani_kumar_
Community Advisor
Community Advisor
Mar 5, 2016 4:49 AM UTC
Hi Rama, Please follow below blog for copying acls for users and groups http://www.hsufengko.com/home/copy-users-groups-permissions-acls-between-adobe-cq-instances
Translate
nsvsrkAuthor
Level 8
Mar 5, 2016 7:00 AM UTC

Hi,

I followed all instructions in this URL: http://www.hsufengko.com/home/copy-users-groups-permissions-acls-between-adobe-cq-instances

  1. Downloaded create_package-4.zip package written by Yogesh Upadhyay.
  2. Manually installed create_package-4.zip package to my source CQ.
  3. Went on access the source CQ: <host>:<port>/apps/tools/components/createPackage/run.html
  4. Tried to Create a package named ACLDump with all nodes of rep:ACL type, selected AC handling behavior of 'overwrite' .
  5. Offered exactly the same parmeters, as described in this URL page.(//element(*,rep:ACL), ACLDump, overwrite)
  6. When I hit "Create Config Package" button, I am getting a Forbidden error (Attached the screen shot)

Please suggest.

Appreciate your help.

Thanks,

Rama.

Translate
nsvsrkAuthor
Level 8
Mar 5, 2016 7:02 AM UTC

Attaching the screen shot.

Thanks,

Rama.

Translate
joerghoh
Adobe Employee
Adobe Employee
Mar 5, 2016 11:21 AM UTC

Hi,

you might try the ACL packager from ACS AEM Commons [1].

kind regards,
Jörg

[1] https://adobe-consulting-services.github.io/acs-aem-commons/features/acl-packager.html

Translate
nsvsrkAuthor
Level 8
Mar 5, 2016 11:34 AM UTC

Hi Jorg and all,

I tried the ACL packager from ACS AEM Commons also without success.

Mine is the simplest use case. Just created a user rn. Made him a member of workflowusers group and offered read access to only two nodes, /apps/emitra and /content/emitra. In the acl packer, specified rn as principle and added /apps/emitra and /content/emitra paths, selected includePrincipals. Using Package Manager, built the package and downloaded. Using Package Manager, uploaded this package and installed in the target AEM instance. User rn was created. But acls and group info did not get copied.

Please suggest ASAP.

Appreciate your help. 

Thanks, Rama.

Translate
nsvsrkAuthor
Level 8
Mar 5, 2016 1:26 PM UTC

Hi all,

I packaged the rep policies directly, using package manager, by including filters /apps/emitra/rep:policy and /content/emitra/rep:policy.

When installed, somehow these look to have not been carried to the target AEM.

Now I am out of all ideas.

Thanks,

Rama.

Translate
nsvsrkAuthorAccepted solution
Level 8
Mar 7, 2016 11:29 AM UTC

Hi all,

This issue was resolved and I was able to package ACLs using acs-aem-commons.

The problem was that the Include Paths was getting pre populated with 2 paths by default.

specified rn as principle and removed these two entries.

It packaged all paths for the principle rn nicely.

I could try to help, if anyone gets in to a similar issue.

Thanks,

Rama.

Translate