2

If we build an SharePoint app and need to show items based on audience targeting, can we use CSOM for that? Can't find any references to it in the CSOM SDK.

0

As far as I can recall, filtering of list items based on Target Audience works only with Content Query WebPart. If you are trying to execute CAML query it will not consider audience targeting. You will need to explicitly process target audience column yourself.

Instead of using audience targeting you may want to apply appropriate permissions on list items so that security trimming gets into picture and will filter out unwanted items from getting displayed.

  • What we are primary looking for is to build a audience picker within the app using CSOM. The second step would be to check if the current user is part of the audience group that is set on the page that we would like to display in the app. – Niclas Carlsson Mar 10 '15 at 13:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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