AnsweredAssumed Answered

install webscript using AMP to /alfresco instead of /share?

Question asked by ryanbobko on Mar 21, 2011
Hi Everyone,
I'm looking for some advise or help with a webscript I'd like to install via AMP. When I install it via AMP, it seems to only be available in /share, and the "people" javascript object isn't available. However, I can't figure out how to get the script installed to /alfresco via the AMP. So how do I get the script installed to /alfresco via AMP, or how do I get the webscript to see the people object from /share?

Thanks folks!

Here's the code (I took it from another post around here…)


var username = url.extension;
var person = people.getPerson( username );
var pgroups = people.getContainerGroups( person );

var loop = 0;
model.groups=Array();
for( i=0; i<pgroups.length; i++ ){
    var g=pgroups[i];
    var realgroup=groups.getGroup( g.properties.authorityName.replace( /.*GROUP_/g,"" ) );
    if( null!=realgroup ){
   model.groups[loop++]=realgroup;
    }
}

Outcomes