Start the Organization Browser at any Account Name

Start the Organization Browser at any Account Name

This solution works perfect when needing a company organization chart that you can link directly from say the top navigation or via an About Us page. You could also take it a step further and do this for every department’s top level site and show the organization chart starting with the Department Head.

Pre-Reqs

  • A web part page or page with the OOTB Organization Browser web part added
  • Account name for your CEO or Department Head
  • Access to SharePoint Designer 2010

Steps

Open SharePoint Designer 2010 and navigate to the page where you have added the Organization Browser. Right-click and select Edit File in Advanced Mode

 

Using either Split view or Code view, navigate to the top of the code and locate the maroon colored Register statements. Copy and paste the below at the end of the last Register statement:

<%@ Register Tagprefix=”SPSWC” Namespace=”Microsoft.SharePoint.Portal.WebControls” Assembly=”Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>

 

Next, locate PlaceHolderMain (CTRL+F for Find) and copy and paste the below directly under it on the next line:

<SPSWC:ProfilePropertyLoader id=”m_objLoader” LoadFullProfileOfCurrentUser=”true” runat=”server”/>

 

Now, save the page and you are customizing the page so click Yes on the warning screen.

All you have to do now is simply navigate to the page from a browser but include ?accountname=domain\username after aspx in the URL

Example: https://portal.company.com/OrgChart.aspx?accountname=CONTOSO\chris.johnson

 

Again, make this a link for “Company Org Chart” from the top navigation or a link to the HR site with the HR Department Head’s account name in the query string. Now, I believe, we can truly use the Organization Browser web part for its full potentia

 

Details article at: http://www.tcscblog.com/2011/07/29/start-the-organization-browser-at-any-account-name/

 

Advertisements