0

I am fetching users from User information list and showing on the page, however, it fetches all the users and some all the group. I can I filter it for users only not for the group?

Thanks

2
  • Hey Ramesh, what are you trying to accomplish, and how are you fetching the users? Oct 7, 2017 at 23:57
  • I am working for staff directory in which i need to list the all users.I have made the rest api call to user information list to fetch the all users however it aslo return me the list of groups in it that I would like to filter.
    – Ramesh
    Oct 8, 2017 at 1:10

1 Answer 1

3

From my testing it seems you can filter on the ContentTypeId which corresponds to the "Person" content type. Groups are listed under the "SharePointGroup" content type. Use the below to pull only users from the User Information List:

?$filter=ContentTypeId eq '0x010A0064371926825B4B4D959C7FEE68507C0C'

Hope this helps!

0

Your Answer

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