cancel
Showing results for 
Search instead for 
Did you mean: 

how to modify the people search during site invite?

movaxbx
Champ in-the-making
Champ in-the-making
Hello,

I am a new developer trying out Alfresco, I have managed to to customize a few simple headers and menu items. I have been reading the documentation on webscripts and fairly have an idea on how do what I need to do: when user searches for other users during invite, he can only see users of the same organization as he is. I just need some guidance to see if i'm doing this right.

basic idea of doing it is by extending people-finder with the code below:

if (!user.isAdmin) {
     // for loop here enclosing code below
       if (items.organization == user.properties["cm:organization"]) {
                  items.splice(i,1);
                  break;
       }
   
}


I got this idea from <a href="https://forums.alfresco.com/comment/43094#comment-43094">this forum thread</a>.
1 REPLY 1

lementree
Champ on-the-rise
Champ on-the-rise
Hi,

you are idea is right, but you need to make these changes in <strong>potentialmembers.get.js</strong>


Regards,