05-12-2009 04:38 PM
GROUP-A
_________________
| |
Group-A-A Group-A-B
| |
Group-A-A-A Group-A-B-A //cut inheritance
document.setInheritsPermissions(false);
//get groups of the user (in this example if the user belongs to Group-A-A-A the function return Group-A-A-A,Group-A-A and Group-A )
var arr=people.getContainerGroups(person);
var i;
for(i=0;i<arr.length;i++)//assign read permissions
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
07-10-2009 01:39 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.