1

I am building a form using REST and am trying to create a drop down based on a person/group field.

'..ListData.svc/listNameFieldName' does not seem to work for those field types and accessing '..ListData.svc/UserInformationList' does not identify group members.

Is there a way for me to access this information via REST? If not, would using JSOM/SPServices provide a solution?

1 Answer 1

-1

You can get below REST method to get users from the group.

GET request example: Get the users in a group

executor.executeAsync({
  url: "<app web url>/_api/SP.AppContextSite(@target)/web
    /sitegroups(7)/users
    ?@target='<host web url>'",
  method: "GET",
  headers: { "accept": "application/json; odata=verbose" },
  success: successHandler,
  error: errorHandler
});
2
  • 1
    Will this solution work for SharePoint 2010? I believe that AppContextSite is only for 2013.
    – exSQZme
    May 24, 2016 at 13:26
  • Yes it will work
    – Hardik
    May 24, 2016 at 13:27

Your Answer

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

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