AnsweredAssumed Answered

Folder permission:how to run custom action as 'another user'

Question asked by redbull on Sep 5, 2012
Latest reply on Sep 6, 2012 by redbull
Hi all, I'll try to explain my problem.
In Alfresco I have two user group each of one have permission to different spaces:
GROUP1 (USER1, USER2, USER3), (SpaceA, SpaceB)
GROUP2 (USER4, USER5) (SpaceC, SpaceE)

I write a custom action applied to GROUP1 spaces that, at the end, should move the content to GROUP2 specific space (SpaceC):

nodeService.moveNode(actionedUponNodeRef, targetNodeRef,
                 ContentModel.ASSOC_CONTAINS, ContentModel.ASSOC_CHILDREN);

But GROUP1 users don't have "folder permissions" on GROUP2 spaces to execute moveNode method.
Do you have any suggestions on how to handle this? (something like "runas" admin user…)
Thanks!

Outcomes