set owner of node or content via webscripts
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2010 06:00 AM
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 node
rojects. 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
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 node

Does such script exist to do that?
Thx for any feedback
Regards RG
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2010 09:49 AM
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!
Kev
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!

Kev
