GROUP-A
_________________
| |
Group-A-A Group-A-B
| |
Group-A-A-A Group-A-B-A
//corto la herencia que recoge el documento de su carpeta padre
document.setInheritsPermissions(false);
//obtengo los grupos a los que pertenece el usuario (en nuestro caso si el usuario pertenece al Group-A-A-A la funcion devuelve Group-A-A-A,Group-A-A and Group-A )
var arr=people.getContainerGroups(person);
var i;
for(i=0;i<arr.length;i++)//asigno a estos grupos permisos de lectura
document.setPermission("Read",arr[i].properties["usr:authorityName"] );
document.save();
Permissions
Inherit: false
Assigned Permission To Authority Access
Read GROUP_GROUP-A-A-A ALLOWED
Read GROUP_GROUP-A-A ALLOWED
Read GROUP_GROUP-A ALLOWED
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.