Hi,
I have created a workflow with a auto activity which runs an automatic method on behalf of repository owner.
Below is snippet to modify existing ACL:
object.grant(session.getLoginUserName(), 6, null);
for(int i=0;i<userName.size();i++){
if(object.getPermitEx(userName.get(i))<6){
object.grant(userName.get(i), 6, null);
}
else if(object.getPermitEx(userName.get(i))<3){
object.grant(userName.get(i), 3, null);
}
But the permissions on document are different.
Please let me know.
Thank You.