{"id":8,"date":"2008-11-04T23:08:37","date_gmt":"2008-11-04T23:08:37","guid":{"rendered":"\/blogs\/benbarefield\/archive\/2008\/11\/04\/sharepoint-sites-and-user-specific-web-parts.aspx"},"modified":"2008-11-04T23:08:37","modified_gmt":"2008-11-04T23:08:37","slug":"sharepoint-sites-and-user-specific-web-parts","status":"publish","type":"post","link":"https:\/\/www.benbarefield.com\/blog\/2008\/11\/04\/sharepoint-sites-and-user-specific-web-parts\/","title":{"rendered":"SharePoint Sites and User Specific Web Parts"},"content":{"rendered":"<p>I&#8217;m not quite running with SharePoint yet, but I have definitely improved.&nbsp; It is quite a powerful tool, if you just know where to look.&nbsp; At SRT we have multiple customers, and would like to have pages for each of them.&nbsp; We would like these customers to be able to access the pages that are for them, but we don&#8217;t want them to see the pages for our other customers.&nbsp; Also, all our SRT employees should be able to access all of the links.<\/p>\n<p>Turns out this is pretty easy to do with user groups.<\/p>\n<p>First, in Site Settings-&gt;People and Groups you have to set up the groups that you want.&nbsp; Add the people to each group that you want to be able to see your web part.<\/p>\n<p>Then to get the links on the main page up, add a Summary Link Web Part to your page for each group of links you have:<a href=\"http:\/\/srtsolutions.com\/blogs\/benbarefield\/WindowsLiveWriter\/ShowingWebPartstoSpecificUsers_F8A2\/addWebPart_2.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"600\" alt=\"addWebPart\" src=\"http:\/\/srtsolutions.com\/blogs\/benbarefield\/WindowsLiveWriter\/ShowingWebPartstoSpecificUsers_F8A2\/addWebPart_thumb.jpg\" width=\"547\" border=\"0\"><\/a><\/p>\n<p>Next, you need to modify this web part:<\/p>\n<p><a href=\"http:\/\/srtsolutions.com\/blogs\/benbarefield\/WindowsLiveWriter\/ShowingWebPartstoSpecificUsers_F8A2\/modify_2.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"119\" alt=\"modify\" src=\"http:\/\/srtsolutions.com\/blogs\/benbarefield\/WindowsLiveWriter\/ShowingWebPartstoSpecificUsers_F8A2\/modify_thumb.jpg\" width=\"728\" border=\"0\"><\/a> <\/p>\n<p>This brings up a menu on the right side of the browser.&nbsp; Open the Advanced tab, and scroll to the bottom:<\/p>\n<p><a href=\"http:\/\/srtsolutions.com\/blogs\/benbarefield\/WindowsLiveWriter\/ShowingWebPartstoSpecificUsers_F8A2\/perm_2.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"559\" alt=\"perm\" src=\"http:\/\/srtsolutions.com\/blogs\/benbarefield\/WindowsLiveWriter\/ShowingWebPartstoSpecificUsers_F8A2\/perm_thumb.jpg\" width=\"201\" align=\"left\" border=\"0\"><\/a> Here you see that there is a box for &#8220;Target Audiences.&#8221;&nbsp; In this box you need to put in the user groups that you want to have access to this web part.&nbsp; Make sure to semi-colon (;) separate the list of groups, if you comma separate them, SharePoint will not be able to find them unless there is a comma in the group name.&nbsp; You can then click the &#8220;Check Names&#8221; button to make sure that the groups you put in are correct.<\/p>\n<p>Now when a user logs in, she will only be able to see the web parts that her group is the audience for.<\/p>\n<p>I haven&#8217;t been able to figure out how to propagate these groups to other site collections in a web app, which would be a useful trick.<\/p>\n<p>Also, one quick rant: Firefox does not play well with SharePoint sites.&nbsp; They are semi-functional, but some of the menus do not work properly even while just viewing the site.&nbsp; This is not completely surprising, but it would be nice if I could use my browser of choice, rather than being restricted to the behemoth that Microsoft gives to us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m not quite running with SharePoint yet, but I have definitely improved.&nbsp; It is quite a powerful tool, if you just know where to look.&nbsp; At SRT we have multiple customers, and would like to have pages for each of &hellip; <a href=\"https:\/\/www.benbarefield.com\/blog\/2008\/11\/04\/sharepoint-sites-and-user-specific-web-parts\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-sharepoint"],"_links":{"self":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":0,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}