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;
for( i=0; i<pgroups.length; i++ ){
    var g=pgroups[i];
    var realgroup=groups.getGroup( /.*GROUP_/g,"" ) );
    if( null!=realgroup ){