In a SharePoint that I support, we have custom properties in the My Sites that represent key knowledge areas that have been identified as significant to the Command. The knowledge areas were identified using a taxonomy creating a hierarchy. For example, one main KA is simply Analysis. Analysis is further broken down into subcategories like Capability Analysis, Cost Analysis and so on. Users can then go into their My Site, edit details and assign values like Novice, Intermediate, Expert, etc to these individual areas. I needed a way to be able to pull that information from their profiles for reporting, etc. The following code gives an example of pulling the value from the custom property “Analysis”.
Nice and simple.