Syncing Asset folder policies to repository in AEM 6.5 | Community
Skip to main content
Mukesh_Kumar_Co
New Participant
November 15, 2022
Solved

Syncing Asset folder policies to repository in AEM 6.5

  • November 15, 2022
  • 1 reply
  • 950 views

We have set up policies for a few asset folders to only allow Content Fragment Models by Path. We want to sync these policies available under /content/dam/<folder>/jcr:content/policies/cfm/ node as a value of property policy-cfm-allowedModelsByPath. I'm using VS code AEM sync extension to sync all my contents to the repository but I can't see an option to sync these policies. Can anyone suggest if we can sync these policies to the repository using the AEM sync extension or any other tool? 

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 SantoshSai

Hi @mukesh_kumar_co,

I'm not using VS code but have you tried importing these policies from parent node? Let's say

/content/dam/<folder>/jcr:content/policies

or 

/content/dam/<folder>/jcr:content/policies/cfm

Otherwise, you can create a package for similar locations in your AEM and export them to your repository by extracting a zip file. 

Additionally, you may have to update filter.xml too. For more details please check this article [0].

[0]: https://sourcedcode.com/blog/aem/importing-rep-policy-nodes-in-the-ui-content-maven-content-package

Hope that helps!

Regards,

Santosh 

1 reply

SantoshSai
SantoshSaiAccepted solution
New Participant
November 15, 2022

Hi @mukesh_kumar_co,

I'm not using VS code but have you tried importing these policies from parent node? Let's say

/content/dam/<folder>/jcr:content/policies

or 

/content/dam/<folder>/jcr:content/policies/cfm

Otherwise, you can create a package for similar locations in your AEM and export them to your repository by extracting a zip file. 

Additionally, you may have to update filter.xml too. For more details please check this article [0].

[0]: https://sourcedcode.com/blog/aem/importing-rep-policy-nodes-in-the-ui-content-maven-content-package

Hope that helps!

Regards,

Santosh 

Santosh Sai