Search Centre display items from list that are restricted to that user

I created a search centre page for users to be able to search on our reports. A lot of these reports have permissions on them and should not be available for viewing. I tested with a user to search for a restricted item for them in the search centre. The
items appeared, however it was only upon executing the item, it stated that it had not been shared with them.
Is there a way to prevent the items appearing in search to being with?

So after doing a little more of my own research I found that I will have to implement some form of security trimming using a custom solution.
http://msdn.microsoft.com/en-us/library/office/ee819923(v=office.15).aspx
A little out of my depth writing in C# for SharePoint, so are any other ways of implementing a basic security trimmer?

Similar Messages

  • How to drag and drop item from list to another item in list and change their positions

    I have a list field with multiple items. I want to select one item from list and drag and drop to another item in the list
     after drop item on another item the position of items should be change. (Example:- if I select 1st item from list and drag and drop this item to 4th item in list after drop that item position of both item should be changed 1st item on 4th position and 4th item on 1st position)
    I don't know how to do this.Please help me to find the solution.

    Hello Zoltan,
    I do not believe that kind of option is built into the listboxes, but I was able to have similiar functionalities using property nodes. I have included an example program that I put together.
    The big difference is that instead of dragging, you double click on the item you want to transfer. To highlight items as you go down the list, all you need to do is set the value to that list number.
    Hope this helps you out!
    Attachments:
    Temp.vi ‏33 KB

  • Copy item from List A to List B, generate 2 rows in List B

    Hi, 
    I would like to copy and update items from List A to List B. However, I want the item to be duplicated in List B.
    I will explain my scenario
    - List A contains a People Picker column of multiple selection and a Title column
    - When the form is submitted, a workflow should trigger to copy the item to List B. If the People Picker column contains 2 values inside it, for example, user1;user2. The copied item should be duplicated in rows according to the number of users.
    Example
    Columns   Title, Users, ID
    List A - TicketNo1, User1; User2, 1
    List B - TicketNo1, User1              1
    List B - TicketNo1, User2              1
    Can this be done OOTB or must we use some event receiver..has anyone ever done such a thing before?

    Hi,
    Below code help you to accomplish your task using event receiver
    public
    override void ItemAdded(SPItemEventProperties properties)
    //base.ItemAdded(properties);
    if (properties.ListTitle ==
    "ListA")
    SPUser user = null;
    //get value of fields
    string strTitle = Convert.ToString(properties.ListItem["Title"]);
    SPFieldUser userField = (SPFieldUser)properties.ListItem.Fields.GetField("TaskAssignUser");
    SPFieldUserValueCollection fieldcollectionValue = (SPFieldUserValueCollection)userField.GetFieldValue(Convert.ToString(properties.ListItem["TaskAssignUser"]));
    foreach (SPFieldUserValue fieldValue
    in fieldcollectionValue)
                       user = fieldValue.User;
                       //Create items in another list
    SPList destinationList = properties.Web.Lists["ListB"];
    SPListItem targetItem = destinationList.Items.Add();
                       targetItem["Title"] = strTitle;
                       targetItem["WorkAssigned"] = user;
                       targetItem.Update();
    Thank You,
    Somnath Matere

  • How to display items from database using catagorylookupdroplet

    Hi everyone,
    i want to know how to display items from database using catagorylookup droplet. if anybody have any code snippet please share it.
    Thanks in advance,

    <dsp:droplet name=".................../CategoryLookup">
         <dsp:param name="id" param="itemId"/>
         <dsp:oparam name="output">
              <dsp:valueof param="element.displayName"/>
                   <%-- This is show the Child Category --%>
                   <dsp:droplet name="......................./ForEach">
                   <dsp:param name="array" param="element.childCategories"/>
                   <dsp:oparam name="outputStart">Child Categories</dsp:oparam>
                   <dsp:oparam name="output">
                        <dsp:a href="">//bydefault it will take its own file's name
                             <dsp:param name="itemId" param="element.repositoryId"/>                                                                                          <dsp:valueof param="element.displayName"/>
                        </dsp:a>
                   </dsp:oparam>                                             
                   </dsp:droplet>
                   <%-- This is show the Child Product --%>          
                   <dsp:droplet name=".............../ForEach">
                        <dsp:param name="array" param="element.childProducts"/>
                        <dsp:oparam name="outputStart">Child Products</dsp:oparam>
                                  <dsp:oparam name="output">
                                       <dsp:droplet name="................/ProductLookup">
                                            <dsp:param name="id" param="itemId"/>
                                            <dsp:param name="elementName" value="Prod"/>
                                            <dsp:oparam name="output">
                                                 <dsp:getvalueof id="img102" param="Prod.smallImage.url" idtype="java.lang.String">
                                                      <dsp:img height="250" width="250" src="<%=img102%>"/>
                                                 </dsp:getvalueof>
                                            </dsp:oparam>
                                       </dsp:droplet>
                                       <dsp:a href="productView.jsp">
                                            <dsp:param name="itemId" param="element.repositoryId"/>
                                            <dsp:valueof param="element.displayName"/>
                                       </dsp:a>
    Hope this helps.
    -RMishra

  • HT203167 I recently downloaded my previous purchased items from iTunes but I have found that some songs dont play or have only downloaded half of the actual song :/

    I recently downloaded my previous purchased items from iTunes but I have found that some songs dont play or have only downloaded half of the actual song :/ when i go to iTunes>Purchased it says that the songs have already been downloaded, which means i cant re-download them. is there a way I can re-download my previous purchased songs?

    Once you successfully add you iTunes library to iTunes Match, you go to Settings>iTunes & App Store on your iOS device and turn on iTunes Match.  Your iTunes Match library will then appear on your iOS device.

  • When I try to open the shared library on the 2nd computer (the one I want to xfer music to), the only songs that come up are those that are already in that same library (the library on the 2nd computer).  While I can see computer

    When I try to open the shared library on the 2nd computer (the one I want to xfer music to), the only songs that come up are those that are already in that same library (the library on the 2nd computer).  While I can see computer #1 listed under 'shared,' when I click on it the only songs I can see are those that I already have on the 2nd computer.  Hopefully that makes sense.  Basically, the library from computer #1 isn't loading up.

    What level of OS X is installed on your Mac (your profile is incomplete)?
    Barry

  • HT1349 Apparently you can have 5 computers registered for iTunes.  I have 3 active computers but I guess I have other computers that are still activated that I no longer use.  Is there a way to delete or see what the others are?  Please help!

    Apparently you can have 5 computers registered for iTunes.  I have 3 active computers but I guess I have other computers that are still activated that I no longer use and I no longer have as they crashed.  Is there a way to delete or see what the other computers are so that I can go in and delete them?  I've tried to email Apple directly but apparently I need my hardware # and obviously I do not have that # since I don't have the equipment any longer.  Any help is greatly appreicated.  I am trying to add another computer and it won't allow me to as they say I'm at my limit.  Please help!

    Sure.
    Just open up iTunes on your computer -> Go to the iTunes Store -> Click your e- maill address (top right corner of the window) -> Type in your password for your Apple ID -> Under Computer Authorisations (underneath your Apple ID account balance and address) -> Press 'Deauthorise All'
    -> This will deauthorise all computers and devices from your iTunes account -> you then need to re- authorise any computers/ devices you would like to use with your Apple ID for iTunes content -> to do this, select the Store tab along the menu at the top (where 'File', 'Edit', 'View' etc..... are) -> Then click 'Authorise this Computer' -> Type in your Apple ID -> Voila!
    For any iOS devices (non- computers) you wish to re- authorise, these will automatically do so when you go to play iTunes content, download an app or anything like that on those devices!
    Hope this helps!

  • I have the Iphone4 and have a few txt msgs that are long conversations that I would like to send to my email account to have a record of them.  Is there a way I can do that?  Thnx!

    I have the Iphone4 and have a few txt msgs that are long conversations that I would like to send to my email account to have a record of them.  Is there a way I can do that?  Thnx!

    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php

  • How to allow some apps that are restricted by age?

    I have the restrictions for apps on my 10 year old's ipad mini set to 9+.  There are a few puzzle-based apps that are rated 12+ that I'd like him to be able to have.  Is there a way to enable only specific apps that I specify, or, is my only option to change the restrictions to enable all apps rated 12+?  I notice with Safari, you can disable it, but then can allow specific sites that I name.  I can't seem to find that option with apps.  I'm assuming it's not possible, but thought I'd ask in case I'm missing something....Thanks!

    With apps it's all or nothing, so you can either allow all 12+ apps or none of them, you can't just allow some of them.

  • Why does Apple charge for Apps that are FREE? That's my concern.

    Why does Apple charge for Apps that are FREE? That's my concern.

    Free means Free....
    As both Johnathan and Demo have indicated, if it says Free there is no charge associated with it. If you upgrade to a "Pro" version, or if you do in-app purchases, then it is no longer free....but when you initially install the app, you do not pay anything if it says "Free".
    And "Yeah? I'll show you" does not help us to understand what you are talking about. If you want help, then provide specifics and we will help you to figure out your misunderstanding.
    Cheers,
    GB

  • How can i remove items from list that have been deleted when i click on them it keeps showing empty

    how can i remove items from the list that have been deleted when i click on them it keeps showing folder empty

    Actually, Reader SHOULD keep showing documents that no longer exist, I disagree. It's no big deal, and people will quickly realise why they can't open the file. They open more files, the old ones move off.
    The REASON why it should not check is that checking whether a file exists can take a long time when things aren't good. For instance if a file server goes down, or a memory card is unplugged. That in turn would mean delays opening the File menu, and I've seen some software that can sit there for several minutes. That would really give people something of which to complain...

  • How do I get a web part to display items from a dropdownlist?

    I have a DropDownList that am filling with items from a list. The part of my code that am using to read the list and populating the drop down works just fine. I am now trying to figure out how to display the contents of the drop down on a web part. I know
    it sounds like a straight forward and easy thing to figure out, but I have blanked out. Does anyone have a snippet I can take a look at? This is how I am currently reading from a list to create the drop down...
    protected override void CreateChildControls()
    string title = string.Empty;
    EditorChoices = new DropDownList();
    string siteUrl = "mySite";
    using (SPSite site = new SPSite(siteUrl))
    SPWeb web = site.RootWeb;
    SPList list = web.Lists["testList"];
    SPQuery testQuery = new SPQuery();
    testQuery.Query = "<Query><Where><Geq><FieldRef Name='Title'/>" +
    "<Value Type='Number'>10</Value></Geq></Where></Query>";
    foreach (SPListItem item in list.GetItems(testQuery))
    title = Convert.ToString(item["Title"]);
    EditorChoices.Items.Add(title);
    Controls.Add(EditorChoices);
    base.CreateChildControls();
    ChildControlsCreated = true;
    I basically want to display the items returned from the query, which are now in the dropdownlist, to be displayed on my custom webpart. I really appreciate the help.
    Thanks
    UPDATE: My dropdownlist is a web part property. So when editing the web part, the drop down control appears in the web part property. Now that part is working just fine. The part am having an issue with is, the second part of my requirement is that I want
    to display that same information within the drop down on the web part. Not as another drop down, but just to display them as a vertical text list on the web part.

    Hello,
    >I want to be able to display all the entteries in the dropdown,
    Could you please provide more information? as per your description fisrt part is done, which was filling data in dropdown list. So what is next?
    If you want to get selected value from dropdown or filter value then you may try this link:
    http://bilbrobloggins.com/sharepoint/dropdown-list-box-filter-web-part-in-sharepoint-ndash-part-three/
    http://tmullenssharepoint.wordpress.com/2013/04/12/sharepoint-custom-web-part-properties-from-sharepoint-list/
    Correct me if i misunderstood
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Search results displays title from the document and not from its metadata

    Hi All,
    I have an issue with SharePoint 2010 Search results. While searching for any content in SharePoint, it displays the title value from the keyword in the document and not from the metedata.
    Scenario:- I have a document library and a document named "Bill Details C1234.doc" in it. The title for this item in document library is "Bill Details". However on searching with keyword "Bill" it displays the
    first word in the word document which is "I".It should display the title set in the document i.e. "Bill Details".
    Please suggest

    I think you're looking to do the reverse of this:
    https://social.technet.microsoft.com/Forums/office/en-US/c2ec4fc2-e04c-453c-8035-4f334f062d05/have-search-results-display-the-filename-of-a-word-doc-instead-of-the-title-metadata?forum=sharepointsearchlegacy
    check this out as well, again I think you want to reverse part of this where it references filename
    http://chris.gg/2011/06/display-filename-instead-of-document-title-in-sharepoint-search/
    So, where it references Filename, you would put title, but leave where it references title alone.  Or maybe I misunderstood and you are looking for exactly this, to make search display the filename and not the title, in which case I trust that you'll
    find this to be your answer.
    Stacy Simpkins | MCSE SharePoint | www.sharepointpapa.com

  • How do I create a URL to filter a view when the value I have from list one is the ID that was used by list 2 to pull in the list 1 title?

    My list "Tasks" has an record with Title = "Build SSIS for Duke Energy" and its ID is 1. Then I have a list "Journal" where I have tracked entries related to the progress of the task. When I create the Journal entries I passed
    in the ID of the task 1 which then pulled the title into the Journal's Associated task lookup column. Now I'd like to have a column in the Tasks list that would have a URL to take me to all journal entries related to the Task. But passing in the ID 1 of the
    task does not work. 
    If the lookup column has the actual Title from the task in all the time and it is not dynamically pulled every time the list is queried shouldn't I be able to filter on the Title e.g. "Build
    SSIS for Duke Energy"  

    I ended up going with a workflow to build the URL and sending the title to the look-up column. 
    I tried the script at that site and ran into several problems. It didn't work with views that were grouped, the calculated links did not show on the edit and view forms. I assume those forms would have to be changed to run the script also.
    In addition to, I have to add a CEWP to each view and I was also losing the "Items" and "List" options (next to "Browse") from the ribbon until I clicked around in the list. 
    What are the downfalls of a workflow? I ask because many people default to using a similar TextToHTML script like you mentioned.

  • JList run time errors when removing items from list

    Hi there
    I am having trouble removing items from a JList. For a While it was working fine and now it outputs runtime errors everytime samething gets removed from the lsit
    Here is the code
    //declare
    public class Consumertab1gui extends JPanel implements ActionListener
         public static JList conList = null;
         private static DefaultListModel model = null;
    // Create a list with some items
    model = new DefaultListModel();
    conList = new JList(model);
    //set the size of cells in the list with the length of the string
    conList.setPrototypeCellValue("Lenght 1234567890");
    conList.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    conList.addListSelectionListener(new ValueReporter());
    //set a scroll onto the list
    JScrollPane conScroll = new JScrollPane(conList);
    add(conScroll,c);
    //when the button gets pressed to drop the selected item the following code is called
    private void dropConsumer()
    int selItem=0;
    componentsV.comVRemove(conList.getSelectedValue().toString());
    selItem=conList.getSelectedIndex();
    System.out.println("No:"+(model.getSize()-1));
    System.out.println("S:"+selItem);
    remConList(selItem);
    dropCon.setEnabled(false);
    //which in turns calls this
    public void remConList(int pos)
         model.remove(pos);
    when the model.remove(pos) code is executed the following runtime errors are given:
    java.lang.NullPointerException
    at Consumertab1gui$ValueReporter.valueChanged(Consumertab1gui.java:197)
    at javax.swing.JList.fireSelectionValueChanged(JList.java:1321)
    at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1335)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
    at javax.swing.DefaultListSelectionModel.removeIndexInterval(DefaultListSelectionModel.java:546)
    at javax.swing.plaf.basic.BasicListUI$ListDataHandler.intervalRemoved(BasicListUI.java:1561)
    at javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:160)
    at javax.swing.DefaultListModel.remove(DefaultListModel.java:478)
    at Consumertab1gui.remConList(Consumertab1gui.java:38)
    at Consumertab1gui.dropConsumer(Consumertab1gui.java:58)
    at Consumertab1gui.actionPerformed(Consumertab1gui.java:46)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    can anyone spot any mistakes in the code or suggest possible resons as to why these run time errors occur?
    Thanks
    alexis

    java.lang.NullPointerException
    at Consumertab1gui$ValueReporter.valueChanged(Consumertab1gui.java:197)The NullPointerException occurs at line 197, in the valueChanged method of your ValueReporter inner class. I have looked through your post several times but I don't see where you posted that method. Anyway, that is where you should look.
    PC&#178;

Maybe you are looking for

  • How to use array as parameter in procedure

    Hello, I am using Oracle SQL Developer 1.5.5 I wanted to write a procedure which does insert into table. It should take 2 parameters.How to take array as parameter? One is a array of strings ('abc','def','erg') and another is a varchar ('abc'). How t

  • Test Agents issues

    Hello,  I am working on setting up an environment where we will be running Coded UI tests. I’m planning on triggering the tests from TFS builds. I have a test plan with 1 automated test case that doesn’t do much – it’s meant to always succeed 5 VMwar

  • Default Item category

    Dear All, When creating a sales order with reference to quotation which contains 2 materials, for one material item catogery defaulted in sales order is not the correct and the other material is OK. I checked in VOV4 item catergory determination is a

  • Bootable clones for both iMac (Intel) and G5 (PPC) on same external drive??

    Is it possible to format and partition one external firewire drive to accept a bootable clone of my iMac (Intel) on one partition and my G5 (PPC) on the other? I seem to remember that in order to be able to boot, the Intel and the PPC require somethi

  • I updated to iOS 5 and lost my documents

    I backed up first, then got the update to work, then did Restore from Backup from the correct backup, and synced to get my apps and photos etc. back.  All my documents and other settings have disappeared.  Has anyone solved this problem?  I have a PC