cancel
Showing results for 
Search instead for 
Did you mean: 

set owner of node or content via webscripts

orodis
Champ in-the-making
Champ in-the-making
Hi
I'm using webscript to integrate my app with alfresco. I have root space created in alfresco like:
ROOT
     /projects
           /project1_files
           /project1_files
     /users
         …….
When user creates project automatically at /ROOT/projects node new dedicated folder node gets created. Only alfresco:admin have right to create nodes in nodeSmiley Tonguerojects. In this case he becomes the over in first time for any new project folder. To allow my:user to operate on project node currently I'm adding permission Coordinator for my user. But this doesn't satisfy me because when someone "smart head" will remove all nodes permissions I'm loosing all the access to project folder. One of the solution is to create folder as alfresco:admin and after change folder owner to my:user but I couldn't find any suitable webscript api for that.
Does such script exist to do that?

Thx for any feedback
Regards RG
1 REPLY 1

kevinr
Star Contributor
Star Contributor
The JavaScript API that can be access by webscripts does indeed support permission modifications:
http://wiki.alfresco.com/wiki/3.4_JavaScript_API#Permission_and_Security_API
obviously only the users with appropriate permissions can modify them in the first place! Smiley Happy

Kev
Getting started

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.