cancel
Showing results for 
Search instead for 
Did you mean: 

Change space permission with the JavaScript API

simon
Champ in-the-making
Champ in-the-making
Hi Alfresco,

Some weeks ago I requested to expose the permission settings in Freemarker: http://www.alfresco.org/jira/browse/AWC-648. Kevin resolved this issue and this will be available in the 1.3 Enterprise release. Nice, great, perfect, thanks!

Now I would like to request the same feature for the JavaScript API. As far as I can see (and I may be overlooking some things here so correct me if I'm wrong) it's not possible to remove or add users and groups as space users with the JavaScript API.

I need to add groups dynamically, depending on their parent folder:
    * company1
      - subfolderA
Here for example I would like to add company1-grp (some group I defined with all the employees of this company) with a consumer role.

Secondly I would like to trigger this script when a new space (subfolderA in this case) is created, is this possible?

This would allow me to make some templates and let the coordinator of this customer space create subfolders on the fly. He would then select the template "meeting minutes" and all the read and write permissions of this template could be set correctly by the script. Some general permissions will be set in the template but the customer specific permissions need to be added at creation time.
2 REPLIES 2

simon
Champ in-the-making
Champ in-the-making
No reactions regarding this idea?

kevinr
Star Contributor
Star Contributor
There will be several additions to the JavaScript API for 1.4 - please add any suggestions you have to a task in JIRA. The ability to set() permissions will definitely be added.

Thanks,

Kevin