Filtering data in a webpart based on User Role RRS feed

  • Question

  • I have the following requirement.

     I need to develop a service desk kind of application. Based   on the service request area the ticket will be assigned to a group who handles those request. I have about 20 such groups where the requests are routed to a group based on user selection in infopath form. This infopath will be submitted to the Document Library. After sumitting the infopath form to the server the routing will be done based on the drop downs selection in the form. 

    If a user of particular groups signs in , he should only see  and update the request of his group. My questions is how to filter the data in a webpart based on user group? Any thoughts and ideas?

    Tuesday, November 25, 2008 12:35 AM


  • We have achieved something similar (actually, identical) by creating a workflow or an event handler that moved the items to folders (or other document libraries) where only the right groups had permissions to.

    Otherwise, you can write an event handler to manage the permissions on the item, as it is being uploaded. I have a sample of one in my blog http://www.sharepoint-tips.com/2007/03/sample-event-handler-to-set-permissions.html

    Ishai Sagi, MCTS in SharePoint Development (WSS & MOSS) Read my blog! http://www.sharepoint-tips.com
    • Marked as answer by satya chappidi Wednesday, November 26, 2008 12:43 AM
    Tuesday, November 25, 2008 5:16 AM