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.
Thanks for your feedback! We’re reviewing your suggestion.
Kevin McDonnell commented
It's possible through the unsupported pages api so would be great to get a true version of this
Andrew Backway commented
Any update, this would be useful particularly now the news web part support audience targeting.
This will really help. I have to add further filters to check if user is member of target audience on list
That would be very nice to have that feature via REST.... I have several customers that have filter by audience on their wishlist.
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.