locked
change list view depending on the user viewing ? RRS feed

  • Question

  • hi,

     

    Is it possible to hide columns in a list, depending on the user? 

    I have a document that is being viewed by different people as it goes through a workflow. Some of the users don't need to see some columns.

     

    thanks


    mhoran
    • Moved by Mike Walsh FIN Friday, September 23, 2011 6:31 AM not general (From:SharePoint - General Question and Answers and Discussion (pre-SharePoint 2010))
    Thursday, September 22, 2011 11:41 PM

Answers

All replies

  • Not sure but was wondering if you can create Views and dynamically change those views based upon the user so as to show users with their respective columns only.
    Friday, September 23, 2011 3:54 AM
  • Hi,

    How do you want to differentiate between what various users see? In SharePoint Designer you can apply Condidtional Formatting to hide / display columns based on defined criteria, once of which is user permission levels.

    Please refer to the following for more info:

    http://blogs.msdn.com/b/sharepointdesigner/archive/2007/11/09/an-introduction-to-conditional-formatting.aspx

    http://www.wssdemo.com/Blog/archive/2007/12/22/sharepoint-data-view-conditional-formatting-based-on-user-permissions.aspx

    Best wishes,

    Eric

    Friday, September 23, 2011 2:10 PM
  • Hi,

    have you tried this

    http://spviewpermission.codeplex.com/

    hope this helps you


    Bhushan | http://www.passionatetechie.blogspot.com | http://twitter.com/BhushanGawale
    Friday, September 23, 2011 3:10 PM
  • hi Eric,

    Thanks for the article refs.

    The different users would be in different departments.  The document first goes through the admin department, then on to the business department. It ends in the personnel department.

     I could categorize the users based on their department( personnel, administration, business),then maybe based on that I could provide a different view.  Is this what you mean?

     

     


    mhoran
    Friday, September 23, 2011 3:27 PM
  • hi,

     

    Thanks.  Do you think a different 'view' could be done by just checking the user's credentials when the are logged in?  Could I just define different views for a list then check the user's credentials when logged in and have them see their list view?

    I'm not sure if this means a new aspx page needs to be created with a special spview.


    mhoran
    Friday, September 23, 2011 3:57 PM
  • Hi,

    Are you using MOSS? Since your need is based on users in different departments, rather than permission levels, I would set them up as individual Groups and look at "Audience Targeting".

    http://office.microsoft.com/en-us/sharepoint-server-help/target-content-to-specific-audiences-HA010169053.aspx

    Best,

    Eric

    Friday, September 23, 2011 9:10 PM
  • yes, we are using MOSS
    mhoran
    Friday, September 23, 2011 9:15 PM
  • Thanks. Please let us know if Audience Targeting works for you. It should, and should also be straightforward to implement.

    Eric

    Friday, September 23, 2011 9:21 PM