Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Permissions keep on getting reset on Author/Publishers.

Avatar

Level 1

Hello there,

 

So, we have a on-prem AEM setup in our environment and this includes both Author and Publishers.

 

We have noticed that whenever there is a restart or a new bundle/package installation the permissions on Author/publisher gets reset for user everyone and other project specific user and we have to set them manually.

 

Is there any way to fix this?

 

Regards,

Nitin

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

No that should not happen. Once you create/update the user permission it’s get stored on aem repository. Restarting of aem shouldn’t reset the permissions. I am hoping you are having a persistent/ permanent volume or memory assigned to your server. If your custom package installation is doing the reset of permissions then you need to check your code if there is something in the code that causes this problem.

however you can also use aem repo unit file to set the user permissions by code deployment or you can create the user permissions via acs commons and install it every time you face the problem.

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

No that should not happen. Once you create/update the user permission it’s get stored on aem repository. Restarting of aem shouldn’t reset the permissions. I am hoping you are having a persistent/ permanent volume or memory assigned to your server. If your custom package installation is doing the reset of permissions then you need to check your code if there is something in the code that causes this problem.

however you can also use aem repo unit file to set the user permissions by code deployment or you can create the user permissions via acs commons and install it every time you face the problem.

Avatar

Community Advisor

@nitins12353 

 

Please look for <acHandling> his configuration in your pom.xml. Set it to merge_preserve:

<plugin>
                <groupId>org.apache.jackrabbit</groupId>
                <artifactId>filevault-package-maven-plugin</artifactId>
                <configuration>
                    <properties>
                        <cloudManagerTarget>none</cloudManagerTarget>
			          <acHandling>merge_preserve</acHandling>
                    </properties>

 


Aanchal Sikka

Avatar

Administrator

@nitins12353 Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni