ACL Packaging | Community
Skip to main content
Level 8
March 5, 2016
Solved

ACL Packaging

  • March 5, 2016
  • 7 replies
  • 4261 views

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.
Best answer by nsvsrk

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
March 5, 2016
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
nsvsrkAuthor
Level 8
March 5, 2016

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.

nsvsrkAuthor
Level 8
March 5, 2016

Attaching the screen shot.

Thanks,

Rama.

joerghoh
Adobe Employee
Adobe Employee
March 5, 2016

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

nsvsrkAuthor
Level 8
March 5, 2016

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.

nsvsrkAuthor
Level 8
March 5, 2016

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.

nsvsrkAuthorAccepted solution
Level 8
March 7, 2016

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.