We are trying to deploy user groups and permissions as part of package deployment.
First time when we deploy it, it works fine and we can see all groups and permissions set for them available in the environment we deployed.
Next we assign some users to the deployed group which adds rep:members weakreferences to those users.
Now if we deploy groups and permissions package again, it removed the rep:members property even when we tried various AC handling options.
Please let us how can we retain the weak references array while managing groups and permissions deployment through packages.
I have looked at the community blog before. The issue is that we do not want to update rep:members property but the rest.
Overwrite will change the value from what's defined in the package.
I would recommend you to use:-
//Frequently, access control entries need to be copied from one environment to another without copying the actual content itself, just the access control entries. This user interface allows you to define and build packages containing access control entries for particular paths and/or particular principals.
Another Reference link:- http://www.wemblog.com/2011/11/how-to-create-package-based-on-xpath-in.html
I hope this will help you.
Thanks and Regards