SharePoint
Feedback by UserVoice

I suggest you ....

Provide a means to do audience filtering for list items over REST APIs

List items that have an Audience field attached should be audience filtered when retrieved via the REST API.

For example, a list that has link items with the Audience field attached to target particular items at particular groups of people. If the REST APIs are used to retrieve items from this list, then the identity of the requesting user should be optionally used to filter the results based on audience.

74 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • PaulE commented  ·   ·  Flag as inappropriate

        Would certainly simplify an app using a REST query for list items. Instead of returning everything and then using your own code to trim down the results to just those which match the Audience, the REST response could be significantly smaller if the REST API did this for you.

        Being the Audiences is not security, it's not a "problem" that the REST API does not do the filtering aside from the workaround suggested in the previous paragraph.

        Would be nice to have.

      Feedback and Knowledge Base