AnsweredAssumed Answered

Add users to a group

Question asked by kbjicho on Sep 17, 2010
Latest reply on Sep 23, 2010 by patil
Hi

Somebody, anybody please help.

I want to create a workflow that will let users assign proxies/acting user if they are not in the office to work on their tasks.

I used the following script yesteday and it worked  :D but today it's giving me errors and i cant figure out what went wrong between yesterday and today :shock: :


<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
    <runas>admin</runas>
        <script>
               
   var srcGrpNode=people.getGroup('GROUP_groupName);
   var authority = "User1";
   
                   if(authority)
         {
           people.addAuthority(srcGrpNode,authority);
        }
   </script>
</action>

Outcomes