Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Displaying an Organisation Chart from AD in SharePoint

13 Mar 2014 1  
Using AD as a source for your organisation chart is useful if you have deployed the foundation version of SharePoint but wish to maintain a centralised organisation chart with other applications. This article tells you how.

This article is in the Product Showcase section for our sponsors at CodeProject. These articles are intended to provide you with information on products and services that we consider useful and of value to developers.

The TeamImprover SharePointOrgChart web part is great for displaying your organisation chart within your corporate SharePoint and works with both server and foundation versions of SharePoint 2010, SharePoint 2013 and MOSS 2007.

Organisation charts can be drawn from a SharePoint list, the User Profile Service, a database query or directly from Active Directory. Please refer to our User Guides for more details.

The evaluation web parts can be downloaded from here or the links below:

Server Edition Foundation Edition
2013 Server 2013 Foundation
2010 Server 2010 Foundation
MOSS 2007

Using AD as a source for the chart is especially useful if you have deployed the foundation version of SharePoint but wish to maintain a centralised organisation chart with other applications. This article tells you how.

Install the web part (guides here and here tell you how) and open a new web part page in Edit Mode. From the custom category select the orgchart web part and add it into a web part zone.

Once added the web part will display the setup wizard. Choose Active Directory from the drop down list of data sources and give your organisation chart a name.

Pressing Next>> will take you to the next applicable step. In this case it is selecting the active directory attributes to be displayed in each box. AD exposes a lot of attributes so it is quite an unwieldy list. Selecting two or three fields normally gives the best results. In this example displayname and title have been selected.

Pressing Next>> moves the wizard on a step allowing you to set look & feel styling properties. The web part exposes a lot more properties in the traditional web part configuration settings, however these basic properties allow you to pick your style quickly.

To see a full list of properties available visit the properties page on our site here and see the User Guides for more information on the other features available.

Once you have selected a style and pressed done you will be presented with your organisation chart!

By default the organisation chart web part will look for the current user (you!) and then find his or her manager using the manager AD attribute and draw the chart from that point.

A frequent requirement is to start the chart at a specific position, for example at the CEO level. To do this you simply put the web part into Edit Mode and then set the Data Source > start Value property to either the account name or distinguished name of the person you wish to begin with.

The TeamImprover SharePoint Org Chart is packed with features. You can use the conditional formatting rules to change the contents of individual boxes. In this example a rule has been set to check the AD flag AccountDisabled

Which when applied highlights the people with disabled accounts in the chart. The conditional formatting can be used to easily differentiate between different types of worker (contract, interns, part-time) and different grades allowing you to bring your chart to life.

The data rules section allow you to filter chart data without having to have access to the source. Which is great for excluding all those test or redundant accounts that might have sneaked into your corporate AD!

Also included in the package is a search and information web parts. These combine with the TeamImprover SharePoint Org Chart web part to allowing your end users to search the chart and find information quickly.

Download the free evaluation web part today and begin creating a great organisation chart app for your end users! Or visit TeamImprover.Com to find out more information.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here