SharePoint provides a great OOB web part to display the user hierarchy. This is called Organization Chart web part which when inserted inside a page of a MySite, displays hierarchical data.
Client wants the Org Chart inside a Portal’s page. Here Portal & MySite are two different web applications & upon using the Org Chart web part, it just shows blank area.
As per MS, the standard is to have MySite & Portal as 2 separate web applications.
This creates a problem as the Org Chart web part is somewhat coupled with MySite dependencies.
If MySite & Portal were inside same web application, then it will work without any tweaks.
This is a case of cross domain issue since data is between 2 different domain.
In order for the web part to properly function on another web application, you have to add a clientaccesspolicy.xml file to the root of the IIS virtual directory for the Portal and MySite web applications.
For security reasons, you should limit this policy to only allow access to your Portal web application.
[xml] <?xml version=”1.0″ encoding=”utf-8″?>
<domain uri=”https://yourportal” />
<resource path=”/” include-subpaths=”true”/>
Put the above file inside the root of both the Portal and MySite virtual directories.