# Using the My Site Organization Browser Web Part inside Non-My Site Application

- Link: https://sharepointtechnicalsupport.com/2015/07/27/using-the-my-site-organization-browser-web-part-inside-non-my-site-application/
- Published: 2015-07-27T04:52:52+05:30
- Author: Deviprasad Panda

People have liked the Organization Browser web part so much that they want the
web part to be added to their companies main Portal web application. I too recently
came across this interesting situation, wherein we were supposed to show the My 
Site Organization Browser web part inside our publishing site. It was a task that
according to me was very small. Just add the Organization Browser web part from 
the Social Collaboration group (as shown in the figure below) in the webpage and
you are sorted.

[⌊WebPartAdding⌉⌊WebPartAdding⌉[

I started working on it. As mentioned, I just added the web part from the Social
Collaboration group, and whoa!!!.. I was done. Wait……there was something wrong. 
The Silverlight web part did not show anything inside it. There was no rendering
done. I tried to do a lot of tweaking, but to avail no success : (

I started searching for the solution over the internet, and noticed that I was not
the only one facing the problem. Instead there were many with the same problem. 
Finally I got something that helped me resolve the issue. There are two approaches
to resolve the issue. They are:

**Solution 1:**

The web part is available and functions as expected IF the Portal and My Sites are
on the same web application. This implies that the My Site and the Portal should
be configured on the same web application.

**Solution 2:**

Having the Portal and the My Site in the same web application is not a best practice
approach. There are also the situations when the environments are entirely different.
In such a scenario, when the Organization Browser is added on a page in the Portal
web application, the web part is added properly, but it displays blank as shown 
below:

[⌊OrganizationBrowser⌉⌊OrganizationBrowser⌉[

In order for the web part to function on the portal web application as it does on
the My Sites, following are the steps to be followed:

Create a **clientaccesspolicy.xml** file. This file will contain the following lines
on xml:

[⌊clientaccesspolicy⌉⌊clientaccesspolicy⌉[

To follow the security best practices, limit this policy to allow access only to
your portal web application.

2.Add this xml file inside the root of the virtual directories of both the portal
web application and the My Sites web application. The virtual directories for the
web sites are located within **“C:inetpubwwwrootwssVirtualDirectories”**

[⌊VirtualDirectory⌉⌊VirtualDirectory⌉[

After you are done adding the file to the root directories of both the applications,
open the portal web application and you would see the Organization Browser web part
functioning properly.

### Share this:

 * [  X ](https://sharepointtechnicalsupport.com/2015/07/27/using-the-my-site-organization-browser-web-part-inside-non-my-site-application/?share=twitter)
 * [  Facebook ](https://sharepointtechnicalsupport.com/2015/07/27/using-the-my-site-organization-browser-web-part-inside-non-my-site-application/?share=facebook)
 * [  WhatsApp ](https://sharepointtechnicalsupport.com/2015/07/27/using-the-my-site-organization-browser-web-part-inside-non-my-site-application/?share=jetpack-whatsapp)
 * [  Email ](https://sharepointtechnicalsupport.com/2015/07/27/using-the-my-site-organization-browser-web-part-inside-non-my-site-application/?subject=%5BShared%20Post%5D%20Using%20the%20My%20Site%20Organization%20Browser%20Web%20Part%20inside%20Non-My%20Site%20Application&body=https%3A%2F%2Fsharepointtechnicalsupport.com%2F2015%2F07%2F27%2Fusing-the-my-site-organization-browser-web-part-inside-non-my-site-application%2F&share=email)
 * [  Telegram ](https://sharepointtechnicalsupport.com/2015/07/27/using-the-my-site-organization-browser-web-part-inside-non-my-site-application/?share=telegram)
 * [  LinkedIn ](https://sharepointtechnicalsupport.com/2015/07/27/using-the-my-site-organization-browser-web-part-inside-non-my-site-application/?share=linkedin)
 * [  Tumblr ](https://sharepointtechnicalsupport.com/2015/07/27/using-the-my-site-organization-browser-web-part-inside-non-my-site-application/?share=tumblr)
 * [  Pinterest ](https://sharepointtechnicalsupport.com/2015/07/27/using-the-my-site-organization-browser-web-part-inside-non-my-site-application/?share=pinterest)

### Like this:

Like Loading…

### _Related_
