Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SP 2013 - Content Search Web Part - Search Query String Only Returning Data For One User

$
0
0

Hello Community!

I'm working in SP 2013 and I'm building a Content Search Web Part (CSWP) Solution.  The query string for my solution is shown below:

path:"https://mycompany.com/sites/mycoolsite/mycooldoclibrary/my%20data%20requests"  (FileExtension:doc OR FileExtension:docx OR FileExtension:xls OR FileExtension:xlsx OR FileExtension:ppt OR FileExtension:pptx OR FileExtension:pdf) (IsDocument:"True" OR contentclass:"STS_ListItem")  (PreparerOWSUSER={User.Name} OR  ReviewerOWSUSER={User.Name} OR  ApproverOWSUser={User.Name})    

Notice I'm using the {User.Name} Property Filter, which, to my understanding, should return the data related to the "Name of user who runs the query", or IOW, if User 1 opens the page with the CSWP on it, they get only User 1 data, but if User 2 opens the page with the CSWP on it - they get only User 2 data. 

So here's the problem, when I run the page with the CSWP on it I get all my data, but when another user runs the page with the CSWP on it, they don't see any data.  What am I missing?

Has anyone else has seen this problem?  If so please provide guidance and code examples to help me resolve it.

Thanks!

Tom


Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award - Linked-In - SharePoint Gypsy


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>