cancel
Showing results for 
Search instead for 
Did you mean: 

Select Specific User From A Group

tfitzpatrick
Champ in-the-making
Champ in-the-making
I'm looking for an example for the following functionality:

I would like to be able to have the user select from a list of users that is specific to a group. Let's imagine there are 20 users in the app spread over various groups. One of the groups is "Editor" and it has 3 members.

do you have example code that would present (drop down list) only the 3 members from the "Editor" group ? Selection of one of the editors would allow me to then assign that editor to a task.

I see lots of questions in the forums that hint at this functionality, but have yet to find a concrete example.

Any assistance you can share would be greatly appreciated.
4 REPLIES 4

andreeagp
Champ in-the-making
Champ in-the-making
Please, if anyone has an answer to this problem. I have been trying to do this for months now and i haven't even figured out where to start.

rjohnson
Star Contributor
Star Contributor
I have never done this, but if you want so general advice; you can search via the normal webscript javascript search object for users and groups, if you can search for groups you can get their members and that would allow you to create the drop down. Becareful because I suspect that you assign tasks to users via a user object id and not a user name (although you can get the user object from the user id).

You have source code for this in the site members webscripts, so start by looking at the scripts called when you search for groups and users off the share site members pages.

Bob Johnson

vinaxwater
Champ in-the-making
Champ in-the-making
I build interface for client (pls view file attach) type keywork for search group. Result is groups with name contain key work and click group in left will show members in right list, can choose 1 or multil members or all members for assign.

Thanks and Regards.

luxman99
Champ in-the-making
Champ in-the-making
Can you share with us how do you build it?