Different main page content for different user groups
Hi, I've implemented in my sharepoint a forms authentication using AspNet provider, implementing also the role provider for the groups of users. I have created different type of sharepoint users including users coming from different Roles. In my sharepoint site I have a main page that contain a web part that must show different thigs for different kind of users. Is it possible to configure in Sharepoint a sort of content based on user logged? The web part is the Reporting Services Report Viewer Web Part. I must show the report A if user logged is in the A group, and report B if the user logged is int the group B. Is it possible? Thanks a lot for your support! Davide BreviDavide Brevi
May 14th, 2010 8:21am

You can put two Report Viewer webpart on the page and use target audience feature. Make first webpart visible to Group A and Second for Group B. (I have not worked on this webpart so you have to check target audience feature in this webpart) For your ref. see the below link: http://sharepointhimadrish.com/index.php/2010/01/26/sql-server-reporting-services-report-reviewer-configuration/Cheers, Hemendra-MCTS
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2010 9:18am

If you only have 2 reports (and therefore 2 web parts), you could get away with using audience targeting. However you cannot create the audience using the role membership of the aspnet provider. Instead you will need to create a SharePoint group and add the fba user to that group. This SharePoint group can then be used to create the audience. To do this, follow these steps: Edit the webpart and click on Advanced Click on the Browse button next to Target Audiences box Find the SharePoint group from the list and add it The group now appears in the Target Audience box Click on apply, then ok This approach does mean that there could be a disconnect between the aspnet provider and the SharePoint group. This gap can be plugged by creating a timer job or batch file that synchronizes the two. You could re-use some code from the audience to group tool here: http://spaudiencegroup.codeplex.com/ to synchronize between the SharePoint group and the aspnet provider.
May 14th, 2010 9:33am

Sorry, I forgot to tell that I'm using WSS3.0. Probably TARGET AUDIENCE is a feature of MOSS, isn't? Thanks! DbDavide Brevi
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2010 12:38pm

Then you can try with list. Create two list and add Group A webpart in list 1 and add group B web part in list 2. Go to list setting and click "permission for this list" option. Add user group A in list one and user group B in list 2. Dont make visible the list to user group if it does not have the permission. Hope this will help you. let me know it works or not Cheers, Hemendra-MCTS
May 14th, 2010 12:47pm

Sounds good, but I don't know how to! :-(Davide Brevi
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2010 1:09pm

Refer below link to create custom list. http://www.trainsignaltraining.com/sharepoint-services-part-2-learn-to-create-a-new-custom-list/2007-10-30/ Permission for Group A Go to Settings-->list settings-->Permission for this list-->Edit Permission from action menu-->Check all the permissions except Group A -->Select Remove User Permission from Actions menu. Same thing has to do for Group B also. I dont know wss supports this feature or not If you need any more help pls let me know. Cheers, Hemendra-MCTS
May 14th, 2010 1:34pm

Sorry, I know how to create list, and assign permissions, but I don't know how to add a WebPart to a list! best regards Davide Brevi
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2010 2:32pm

Click on list--> site action-->Edit Page-->Add Web Part-->Select your report viewer web part-->Click AddCheers, Hemendra-MCTS
May 14th, 2010 2:57pm

Ok, I tried what do you proposed, but it is not working for my needs, because I need to see the web part A in the first page of the site! Do you know other ways? For the moment, many thanks for your proposal! Best RegardsDavide Brevi
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2010 3:30pm

Hi, You can use the item level permission to achieve it. Go to Your library > each item (report) > manage permissions in dropdown menu, and then set the proper permission for the two groups. And then add your list web part to your page. Since it is a hard work to set permissions for every list item, you can try to put the different contents (reports) into the different folders in the document and grant the different permissions to the two groups for them. Hope it is helpful! Seven
May 19th, 2010 10:52am

Hi to all, the best solution I've found is use the personal view of the page! As the number of users with particular page is not so big, I've set to them the personal view with a particular report set. I don't know on how to set different pages in a different way, in case of a large amount of users, because the above suggestions are not working. Thanks to all for the suggestions, Best Regards dDavide Brevi
Free Windows Admin Tool Kit Click here and download it now
July 19th, 2010 9:54am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics