locked
Announcements per SharePoint Group RRS feed

  • Question

  • Hi people

    I have a problem working with announcements in SharePoint.
    I have some SharePoint Groups: Sales, Administration, Human Resources. In each group, there are many people, that's obvious. Then, I would like to identify the Announcements by Department. Then, for example, when Juan (Sales) enters to his Home Screen, he would see announcements with Type=Sales and Mary(Administration) would see the announcements with Type=Administration.

    I hope I was clear. Thanks in advance.

    Rubinho

    Monday, February 16, 2009 11:42 PM

Answers

  • Have you looked into audiences?
    It sounds to me like you want multiple announcement lists on the screen, but you only want certain people to see certain lists. Is that a correct statement? In this case, you can use audiences to only show the list for a particular type of user.
    Now, audiences are not security, because if the user really want to find the other lists they can. But, it doesn't sound like that is an issue for this situation. Audiences are just a way to show certain webparts to certain types of users.
    • Marked as answer by Paul Galvin Tuesday, February 17, 2009 11:38 AM
    Tuesday, February 17, 2009 12:41 AM
  • If you are using single announcement list for multiple groups, the  you can achieve your requirement by :
    1) Set item level permission for different groups. So the user will get to see items with permission
    OR
    2) If Department is one of the user profile property then you can use UserContextFilterWebPart to filter the announcement list items based on logged in user department. Add Department column to your announcement list, set appropriate department while creating new announcement. In the page where you show announcement list, filter the announcement list based on Department. 
    -Sridhar http://sridharu.blogspot.com
    • Marked as answer by wiracocha Thursday, February 19, 2009 12:47 PM
    Tuesday, February 17, 2009 3:39 AM

All replies

  • Ok, hopefully I understand the situation and hopefully I am not simplifying this too much. But, why don't you just add a custom metadata column to your list and tell the users to check it off when they create and announcement. This can be a simple combobox with the appropriate types (Sales, Administration, Human Resources, etc...). Then you can just show that column in the view of the announcements.
    Will that work for you? It seems a lot simplier than trying to figure out the type of person to do this automatically.
    However, if you do want to do that, then you should look into event receivers on the list. You can capture the editing event and then programmatically check the group the user is in. Then you could set this custom column I mentioned. Here is a simple example of how to use an event receiver to set a value in the list: http://mossipqueen.wordpress.com/2008/09/01/handling-sharepoint-events/. All you need to do now is build some code that can determine the current group of the current user.
    But, I think you should think about my first suggestion and not do this programmatically. Just tell the user to mark the type of announcement. This will actually give you an extra feature. Maybe a Sales person wants to make an announcement about an Administrative thing. If you try to do everything for the end user, then you actually kill that business requirement. Anyways, just something to think about.
    Tuesday, February 17, 2009 12:37 AM
  • Have you looked into audiences?
    It sounds to me like you want multiple announcement lists on the screen, but you only want certain people to see certain lists. Is that a correct statement? In this case, you can use audiences to only show the list for a particular type of user.
    Now, audiences are not security, because if the user really want to find the other lists they can. But, it doesn't sound like that is an issue for this situation. Audiences are just a way to show certain webparts to certain types of users.
    • Marked as answer by Paul Galvin Tuesday, February 17, 2009 11:38 AM
    Tuesday, February 17, 2009 12:41 AM
  • If you are using single announcement list for multiple groups, the  you can achieve your requirement by :
    1) Set item level permission for different groups. So the user will get to see items with permission
    OR
    2) If Department is one of the user profile property then you can use UserContextFilterWebPart to filter the announcement list items based on logged in user department. Add Department column to your announcement list, set appropriate department while creating new announcement. In the page where you show announcement list, filter the announcement list based on Department. 
    -Sridhar http://sridharu.blogspot.com
    • Marked as answer by wiracocha Thursday, February 19, 2009 12:47 PM
    Tuesday, February 17, 2009 3:39 AM
  • Not a programming question. Moving to Admin.
    WSS FAQ sites: WSS 2.0: http://wssv2faq.mindsharp.com WSS 3.0 and MOSS 2007: http://wssv3faq.mindsharp.com
    Total list of WSS 3.0 and MOSS 2007 Books (including foreign language titles) http://wss.asaris.de/sites/walsh/Lists/WSSv3%20FAQ/V%20Books.aspx
    Tuesday, February 17, 2009 5:01 AM
  • I have Marked Greg G's response as the answer in case someone comes along looking at this thread and wants to solve a similar problem.  Keep in mind that audiences only work in MOSS standard or higher.

    --Paul Galvin of EMC Consulting, New York area Microsoft MVP - SharePoint Blogging @ http://feeds.feedburner.com/PaulGalvinsSharepointSpace Twitter @ http://www.twitter.com/pagalvin
    Tuesday, February 17, 2009 11:39 AM
  • Thanks for all to responses.

    Greg, in fact, this is just one Announcement List, not many, however, I can also try with audiences. The problem is that when I try to create audiences, I cannot.

    An error has occurred  while accessing SQL database or system resources.
    If this is the first time you have seen this message, please try again later.
    If this problem persists, please contact your administrator. 

    Sridharu

    1) Where do I set up item level permissions?


    Thanks
    Rubén
    Wednesday, February 18, 2009 9:16 AM