{"id":344,"date":"2011-10-03T09:44:29","date_gmt":"2011-10-03T08:44:29","guid":{"rendered":"http:\/\/blog.repsaj.nl\/?p=344"},"modified":"2011-10-03T09:44:29","modified_gmt":"2011-10-03T08:44:29","slug":"excluding-fba-users-from-people-search","status":"publish","type":"post","link":"http:\/\/blog.repsaj.nl\/index.php\/2011\/10\/excluding-fba-users-from-people-search\/","title":{"rendered":"Excluding FBA users from people search"},"content":{"rendered":"<p>When you&#8217;re using FBA authentication to allow external users access to your SharePoint environment, you&#8217;ll notice that when using people search, those account will also show up. In some cases this might be usefull, but sometimes you&#8217;ll want to exclude those users and only show your internal domain users.<\/p>\n<p>Settings this is is quite easy using these steps:<\/p>\n<ol>\n<li>Perform a search which returns both domain as FBA users (or perform two seperate searches).<\/li>\n<li>Copy the link from the search results for both kind of users.<\/li>\n<li>When you compare the links, you&#8217;ll see something like this:<br \/>\nhttp:\/\/www.sharepoint.com\/mysites\/Person.aspx?accountname=<strong>DOMAIN\\user<\/strong><br \/>\nhttp:\/\/www.sharepoint.com\/mysites\/Person.aspx?accountname=<strong>i%3A0%23.f|fbaprovider|user<\/strong><br \/>\nNotice that the ?accountname starts with a different prefix for the two account types<\/li>\n<li>Go into your Central Administration pages, click Service Applications and open up search.<\/li>\n<li>Choose crawl rules in the left menu and create a new rule<\/li>\n<li>If you want to exclude FBA account like me, create a new exclusion rule and enter a URL like<br \/>\nhttp:\/\/www.sharepoint.com\/mysites\/Person.aspx?accountname=<strong>i%3A0%23.f|fbaprovider|*<\/strong><\/li>\n<\/ol>\n<p>Make sure you perform a full crawl so this new rule get&#8217;s applied to your index. The search engine will now ignore your FBA users and won&#8217;t display them any more in the search results. If you\u00a0 want to perform the same thing but for domain users, you can just swap the URL&#8217;s. This will also work when you&#8217;re using the sps:\/\/ service to index your users, since it&#8217;s based purely on the URL&#8217;s of the searchable items, not the source they&#8217;re coming from.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you&#8217;re using FBA authentication to allow external users access to your SharePoint environment, you&#8217;ll notice that when using people search, those account will also show up. In some cases this might be usefull, but sometimes you&#8217;ll want to exclude those users and only show your internal domain users. Settings this is is quite easy<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[34],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3KFR1-5y","_links":{"self":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/344"}],"collection":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":0,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/344\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/media?parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/categories?post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/tags?post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}