I have created 2 groups(epm and mobile). I inserted some users into particular group.

How can I retrieve users based on current group?

For example in a dropdown if I choose emp group I want to show epm users only. Any idea?

1 Answer 1


Maybe set the SharePoint group in the People Picker?

  • 2
    That would not be very dynamic though? Oct 12, 2015 at 7:52
  • That's why I said Maybe.. with only a few groups you could add all People Pickers to a form and hide them based on a selection field... kludgy.. but Maybe it helps. Oct 12, 2015 at 8:55
  • Possibly. I see an issue with doing this on the field level in that scenario though, you would need one people column per possible group, kludgy to say the least ;) Oct 12, 2015 at 8:59
  • Hey... if you never try the difficult routes you will never know if the current route is the easy one... [Me] thinks Display Template is the way to go: msdn.microsoft.com/en-us/library/office/… But it requires some more coding to get the Group selector. Oct 12, 2015 at 11:53
  • Yupp, JSLink is a valid path I think ( might also be the reason whe OP states he wants to do it with javascript) Oct 12, 2015 at 11:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.