cancel
Showing results for 
Search instead for 
Did you mean: 

Setting up permissions for nodes in sites.

jenot
Champ in-the-making
Champ in-the-making
Hello.

I made script which is coping files from repo to site. (Creating data library template)
But I want to setup permissions for copied folders.
I was reading docs, but for me not all is clear.

It is any way to set up for example read+write for collaborators using script ?
3 REPLIES 3

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
Hi jenot,

The nodes in scripts are ScriptNodes (there's a java class for that). For each node you can set and check permissions, there are several methods for these matters.

You can check the wiki page for more info: http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Permission_and_Security_API

Adei

jenot
Champ in-the-making
Champ in-the-making
I found out that it is working for groups that are in LDAP.
For example I can do correctly
.setPermission("SiteCollaborator","GROUP_Office");

But I want to do it on group for example Consumer inside site
.setPermission("SiteCollaborator","site_test19_SiteConsumer");
And this line is not working, it is adding unknown object to object permissions (from repo view)

There is any way to catch group Consumer inside site ?

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
Shouldn't it be "GROUP_site_test19_SiteConsumer"?