Home > SharePoint > Looking for SharePoint 2010 Feature (GU)IDs

Looking for SharePoint 2010 Feature (GU)IDs

Have you ever been looking for a feature (GU)ID in SharePoint? Well here is an easy way to find them.

I needed default SharePoint feature guids for the development of a custom Site Definition. Using a custom Site Definition you can automatically activate SharePoint features within the onet.xml file.

Here we go:

  1. Open the SharePoint site in IE8 (or IE7).
  2. Go to the Site Settings page.
    site-settings-menu
  3. Click on the Manage Site features (or Site Collection features)
    site-features
  4. Use the Developer Tools (shortcut F12)
  5. Click in the toolbar on Find –> Select Element by Click (shortcut CTRL+B, but this opens bookmarks manager on my machine)
    developertools-select
  6. Select the Activate (or Deactivate) button next to the feature you need the GUID from.
    select-feature-activate-button
  7. Developer Tools scrolls down to the HTML source for the specific button, the button tag is contained within a Div tag. This Div tag contains an ID attribute and thats the GUID for the feature!
    selected-feature-html
  8. In this case the GUID is: 9c03e124-eef7-4dc6-b5eb-86ccd207cb87
    selected-feature-guid

This trick also works for SharePoint 2007!

  1. December 15th, 2009 at 19:28 | #1

    Nice writeup.. you could also take a look at the 14Hive\templates\sitetemplates\\xml\onet.xml

  1. No trackbacks yet.