Get top 3 User with most List Items

Hi all,
I have 3 lists and I want to display in a WepPart the top 3 User with most created Items.
Say we have U1, U2 and U2 -user that have created some list items in List A. User U1 has the most list items, so it will appear at first position,... and so on, ok?
Top 3 User for List A
U1
U2
U3
Does someone have done this task alredy? 
thanks for any suggestions
Regards,
Martin

You should be able to use a Content Search Web Part to build a query scoped to those lists to provide this information. Here is one article I quickly found showing it and many others out there that should help you get on your way.
http://www.sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?ID=185

Similar Messages

  • How to provide the user with a list of files to pick from...for downloading

    hai..
    I have uploaded the file succesfully.. now we need to download the file...... which has been uploaded..... for that we have implemnted the Query as..
    select max(id) from APEX_APPLICATION_FILES ,here the latest uploaded record will be retrieved and shown.
    Now We want to provide the user with a list of files to pick from for downloading..,Dat is he should be shown the list of files which is available from dat he has to select one file to downlaod ???
    can u plz tell me how to do it....
    anoo

    Hi Anoo,
    Create a report using the following SQL statement:
    SELECT ID,
    FILENAME,
    CREATED_ON
    FROM APEX_APPLICATION_FILES
    ORDER BY CREATED_ON DESCThere are other fields available from the table, but the above gives you a start.
    Then edit the report's Report Attributes.
    Edit the CREATED_ON column and pick a Number/Date Format to use for the display and Apply Changes
    Edit the ID column. In the Column Link section, enter:
    Link Text: <img src="#IMAGE_PREFIX#download.gif" alt="Download">
    Target: URL
    URL: p?n=#ID#
    Apply Changes and run your report
    Andy

  • Programatically Check if the logged in user matches with user in a list item

    Hi All, 
    I have a custom list with 1) title column 2) People column. 
    I simple need to check if the logged in user = user in the column 2, and if yes fill a List<> with column 1 value. 
    But when comparing, the value in list item is in different format than what we get by user.ToString() 
    Following is what I tried: 
    SPUser user = oWeb.CurrentUser;
    List<String> usergrps = new List<String>();
    foreach (SPListItem itemA in GrpSubsItems)
    if (itemA["SubscribedBy"].ToString() == user.ToString())
    usergrps.Add(itemA["Group"].ToString());
    itemA["SubscribedBy"].ToString() gives = 10;#Some Name
    where as user.ToString() gives = i:0#.w|domain\user 
    Kindly guide if my approach is not correct. Thanks. 
    Regards, Nayan

    Hi Nayan,
    Please modify the code like below:
    SPUser user = oWeb.CurrentUser;
    List<string> usergrps = new List<string>();
    foreach (SPListItem itemA in GrpSubsItems)
    string userName = itemA["SubscribedBy"] as string;
    SPFieldUserValue userA = new SPFieldUserValue(itemA.ParentList.ParentWeb, userName);
    if (userA.LoginName==user.LoginName)
    usergrps.Add(itemA["Group"].ToString());
    More information:
    http://ethan-deng.blogspot.com/2013/03/get-spuser-from-user-column-there-are.html
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Limited-access user permission lockdown mode and allowing anon users to view list items

    I'm working on setting up a public-facing SharePoint website that will need to support anonymous user access. I'm using the Enterprise Publishing Portal site collection template, so the Limited-access user permission lockdown mode feature is turned on.
    Everything is working great, except allowing users to view a list item. One of the key features I was hoping to leverage was the ability to display custom lists on a web page using a List View web part. Then they could click on an item and see the DispForm.aspx
    so the item's content was accessible, including any file attachments.
    A real-world example is adding an RSS viewer web part to the home page and allowing anon users to click on one of the events to see the details of it. Currently, in lockdown mode, the users gets an authentication prompt. 
    I toyed with the idea of turning the lockdown feature off. However, I'm uncertain of the full impact that would have on security. For example, I know it will allow anonymous users to see who created and modified an item, which we don't want exposed to the
    public (i.e. our employee names). Seems like opening a can of worms by disabling the lockdown mode... 
    Any ideas on how to tackle this would be greatly appreciated.

    So far, this is the most promising solution I've come across:
    http://soerennielsen.wordpress.com/2012/05/29/how-to-make-list-items-visible-to-anonymous-users-in-search

  • SharePoint: Workflow to retrieve all users and Create list item record for each user

    Hi all,
    My share point site have two Lists as Holidays and MyCalender.
    Actually Holiday is simple non-Calender list with field as Holiday Date, Reason. MyCalender List Calender type list with Person Look-up column and user can see his own record. User of Manager group will declare holiday. This Holiday should get reflected
    on each user 's MyCalender List.[One listitem as holiday date and reason for each user] so everyone can view that record.
    I have requirement as Manager will create one Holiday record and then run single workflow so for all users present in SharePoint Site, one MyCalender List Item record should get created. Is it possible to do using Workflow?? Please help as I didn't get any
    solution for this.. Thanks in advance!

    You don't need one workflow per user when a filtered view can do this for you.  If the manager's list is the parent calendar, I'm assuming that he'll be at least using the person look-up column.
    Whether this feeds through the MyCalendar or stays where it is, you can use the [Me] parameter within the filter on a new view.  This will then return the assigned holiday filtering against the account that is logged in.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Allow All Users To Add List Items But Only Certain users To Edit Them (SharePoint 2013)

    How do we allow all users to add items to a list, but only allow certain users to edit the list items? Site is SharePoint 2013. We have tried creating custom permissions. That does not seem to work.

    I've setup a custom list on my SharePoint Foundation using a custom permission level to accomplish this.  I setup a custom permission level on the site called 'Add Only to Lists'  which allows adding an item to the list and setup the group with
    the default read and the custom permission level and it works.  The users in the group get the add item but do not get edit item, not even items they created themselves.
    Any users who should have full edit permissions can be setup under the normal edit/contribute/design permission level and work normal.
    Below is the Role Definition pulled via PowerShell and Role Assignments on the list in question.  As well as a picture showing what it looks like to something assigned that role level.
    Role Definition
    Name : Add Only to list
    Description : Can add items to a list but cannot edit or delete
    Type : None
    Hidden : False
    Order : 2147483647
    BasePermissions : ViewListItems, AddListItems, Open, ViewPages
    List Role Assignments
    Member : Home Visitors
    RoleDefinitionBindings : {Read, Add Only to list}
    Parent : IT Equipment Request
    ParentSecurableObject : IT Equipment Request
    The user can create a new item, but cannot edit items - not even items he created.

  • Access denied error when user saves updated list item

    After upgrading a site collection from Sharepoint 2010 to 2013, users with Contribute and Manage Lists permissions cannot save changes to items in lists. All permissions appear to be inherited correctly by the list and when running a permission check for
    the user it returns the expected results. I also tried setting the list to use custom permissions but that didn't help. The logs show the following error when trying to save an item:
    System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    A Sharepoint Designer form is used to edit the items so I don't know if that is related to the issue. After the upgrade the form would not load and was giving a different error until I opened it in Designer 2013 and saved it again. Editing items as a farm
    administrator user works OK.

    Hi,
    According to your description, my understanding is that the users cannot update the list items after migrating to SharePoint 2013.
    Please check this article:http://technet.microsoft.com/en-us/library/gg251985.aspx.
    This is taken from that article:
    "Users who submit valid credentials when accessing the migrated web application might be notified that they do not have permissions. If this occurs, the portalsuperuseraccount property and the portalsuperreaderaccount property of the web application
    were probably configured prior to migration. If this is the case, update the portalsuperuseraccount property and the portalsuperreaderaccount property to use the new claims-based account name. After migration, you can find the new claims-based account name
    in the web application policy for the migrated web application."
    Please update these accounts use the following PowerShell script to see if the issue still occurs:
    $webApp = Get-SPWebApplication "http://<server>/"
    $webApp.Properties["portalsuperuseraccount"] = "i:0#.w|domain\superuser"
    $webApp.Properties["portalsuperreaderaccount"] = "i:0#.w|domain\superreader"
    $webApp.Update()
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Help with select list item and dynamics action

    G'Day Apex Gurus,
    I having problems trying to achieve to trigger the help window of a select item automatically. A help window is triggered when the select item label is clicked but my client would like to be triguered automatically as soon as the user click to see the options in the select list.
    I think that I should be able to do it with dynamic actions but I can not get it to work.
    I know when someone click on the label of the select list item trigger this JavaScript
    javascript:popupFieldHelp('277938589795252851','1545903379570909')
    So I want to trigger the javascript also when the user click of the select list item and pull down the options and for that I think that Dynamic actions is the way to go but I can't get it right.
    This is what I a doing:
    I created a Dynamic option as follow:
    Name : test
    Sequence: 30
    Even: Click
    Selection type: Item(s)
    Item(s): P1_RATING <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    I appreciate any one who can tell me what i am doing wrong here or provide a solution to my problem of achieving to trigger the help window of a select item automatically.
    Kind regards
    Carlos

    Hi Carlos,
    I set up a test case in exactly the same way and it worked fine for me. I created a page item called P1_DA_DEMO and added some static select list values then added some help text. The settings I used are below, I suggest you try again but also make sure you have no other Javascript errors on the page. Use a tool like firebug to check.
    Name : Dynamic Action Demo
    Sequence: 10
    Even: Click
    Selection type: Item(s)
    Item(s): P1_DA_DEMO <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: Not Ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    Event Scope set a s Bind.
    Thanks
    Paul

  • SP Designer Workflow: How to Get Full URL Path to List Item and inserted same list ITem URL in another list

    Hi,
    I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item  column entry url will show the parent item information.
    Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make  item url link through String builder in mail body with using current id and predefine link,but
    when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
    item link dispaly information.
    So I opened SharePoint Designer and start creating the workflow associated to the list.
    As there is some Field from source related to current item URL I start using it
    Encoded Absolute URL – this one should be the one to use
    Server Relative URL
    URL Path
    Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
    Encoded Absolute URL
    http://wfe1/Lists/bpf/1_.000
    Server Relative URL
    /Lists/bpf/1_.000
    URL Path
    /Lists/bpf/1_.000
    As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCS

    Unfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List.   I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to.  One problem is the workflow is initiating
    twice.   I'm thinking I should have just created the workflow as a a "List Workflow."  
    I am going to try "Association Columns" -- that may work.  Anyone have other suggestions?

  • Help with Multiselect List Item

    Assuming one employee can work for multiple departments, I want to display the departments employee 7844 works for preselected in a multiselect list.
    I am using the following query statement in a report region.
    select htmldb_item.select_list_from_query_xl(1, deptno ,'select DEPTNO,DNAME from scott.dept ','MULTIPLE HEIGHT=25', 'Y',null,null,null,'Department',null) a from scott.emp where empno = 7844
    The result I am seeing is a multiple multiselect lists with one department selected in each list.
    How should I modify the query to get what I want?
    Thanks
    Mina

    Hi Carlos,
    I set up a test case in exactly the same way and it worked fine for me. I created a page item called P1_DA_DEMO and added some static select list values then added some help text. The settings I used are below, I suggest you try again but also make sure you have no other Javascript errors on the page. Use a tool like firebug to check.
    Name : Dynamic Action Demo
    Sequence: 10
    Even: Click
    Selection type: Item(s)
    Item(s): P1_DA_DEMO <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: Not Ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    Event Scope set a s Bind.
    Thanks
    Paul

  • How to allow user defined in list item to see item using only Designer. Approver set in list item can't see items they are to approve.

    SharePoint 2010 and Designer 2010.
    We have a list of items that users enter information into. Only the user who enters the data can see the item. It's confidential stuff. 
    One field is the name of the person who will approve this record.
    Workflow sends approver an email and sets a task to approve the item. 
    Problem is that the user set as approver cannot see the item. 
    We can't have a list of approvers - as all staff can potentially be approvers.
    We can't allow anyone other than the person who created the item and the person that is set as approver in a field to have access. 
    I am not a programmer, but a user of SharePoint Designer 2010. 
    (I did think we had this sorted by sending an email containing all the list item fields, but this task still requires permissions). 

    Hi ,
    I understand that after you grant user permission on current item ,the user still cannot approve the workflow task .This is because the user doesn't have approve permission in the Tasks list .You only grant the user permission on current item in current
    list ,so he can approve the item by clicking the Approve/Reject in the edit control block .
    Your workflow is correct ,now you need to grant the users Approve (a permission level) permission in the Tasks list settings .In this way ,the users can finish the tasks .
    Thanks
    Entan Ming
    TechNet Community Support

  • Initial Load - AS ABAP - getting only user with a group

    Hi,
    when i start initial load, i just get users with groups. Is that standard?
    Br,
    Philip

    First of all - you'll need to familiarize yourself with the database for effective learning and debugging. I'm talking about the MS-SQL or Oracle-DB where you installed the IC-schema. It often helps me to understand whats going on behind the scenes.
    Secondly - I read some of your posts - I would advise you to install the dispatcher and everything on the server where the DB is hosted - at least as long as you're in development. The MMC can still be on your local pc/laptop, although some things won't work well there (Import, Dispatcher-Status, ...). This'll ease things a lot I suppose.
    About the service-user... SAP delivers a role you can import into PFCG (SAP_BC_SEC_IDM_.SAP-File in misc-folder of installation media). This role should be sufficient for your communication user, is updated every now and then and contains only the necessary permissions. Maybe you'll have to extend it (Z_SAP_) in case you want to read special tables not supported by the SAP framework (e.g. license data).
    I can hardly believe that the current role assigned to your user only has permissions to users with groups != empty
    By now I have no clue why you only see users in IdM with groups assigned in SU01... look up the SQL-table I mentioned if there are more users.
    BR
    Michael

  • Change color when users click on list item(like read/unread in email)

    Hi
    I assign some task for my colleagues. Now I want to when they open the list item that related to them,color of that item change(like read/unread
    in email)that I understand my colleagues see their task.
    How I can do this?
    Thanks.

    There are few articles available online, refer these
    http://www.sharepoint-journey.com/alternate-color-for-a-column-in-SharePoint-list-using-jquery.html
    http://davecoleman146.com/2013/07/08/colour-coding-a-sharepoint-2013-list-with-jquery/
    http://community.spiceworks.com/topic/151771-color-coding-sharepoint-list-with-jquery-help
    --Cheers

  • Query on getting the Pane with all the items for creating Views

    Hi Group,
    I have a query as under:
    I was trying to create a sample Web Dynpro ( for ABAP ) using tcode SE80 and while creating view, I have to get the Pane with the items ( eg., Radio element, text fields, text areas, etc., kind of all UI Elements )....
    But, I was not able to get while defining the View for the Web Dynpro application....
    Please let me know if any setting has to be done to get this or any other clue as to get this Pane...
    Thanks in advance.
    Regards,
    Vishnu.

    hi vishnu....
            make sure you have given the host and port in the local host file in c:/.
    [link|help.sap.com/saphelp_erp2005/helpdata/en/43/e86de5008b4d9ae10000000a155369/content.htm ].
    ---regards,
       alex b justin

  • InfoPath: Cascading Fields, need to get ID of final selected list item

    I have a two drop down lists in an InfoPath form. They are getting their data from a SharePoint List that has two columns: Objectives, Strategies.
    The drop down lists are cascading. So dropdown list 2 (DDL2) values change depending on what dropdown list 1 (DDL1) is set to.
    So my list looks like this:
    objective 1 - strategy 1
    objective 1 - strategy 2
    objective 1 - strategy 3
    objective 2 - strategy 1
    objective 2 - strategy 2
    The cascading part in InfoPath works correctly. My problem is that I need to get the ID of the item (strategy) selected in DDL2.
    DDL1 gets its values from an external data source (sharePoint list):
    Entries: /dfs:myFields/dfs:dataFields/d:SharePointListItem_RW
    Value: d:Objective
    Display name: d:Objective
    DDL2 gets its values from the same external data source (sharePoint list):
    Entries: /dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Strategies[../d:Objective = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:obj]
    Strategy is filtered based on Objective = Objective
    Value: Strategies
    Display name: Strategies
    How can I get the ID of the Strategy selected in DDL2 so that I can write it out to another column that SharePoint can use in a workflow. The only value returned in for DDL2 is Strategy, no ID option.

    Hi Sonners,
    If you want to get the ID of the selected "Strategy" item in DDL2, I think you may need to use the same approach to retrieve the same external data source(SharePoint list have the Objectives and Strategies columns) on another field, then
    filter the list item ID based on the selected Strategy value in DDL2 which equals to the strategy value in that external SharePoint list.
    Or you don't need to get the list item ID of the "Strategy" selected in DDL2 in InfoPath form, you can directly get the list item ID which is filtered by the condition SharePoint list item "Strategy" column value equals
    to the value selected in DDL2 in Desinger workflow, then use the ID value as you want in workflow.
    I have tried a similar method for another requirement like this
    post, you can take a look.
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for