How to find out the ID of a site collection, subsite and list
While working on one ticket, I did some research and fetched some things regarding ID’s.
Site collection, Subsite and List are important entities which are widely used on day to day basis.
There are times when you need to find out the Id/Guid of a site collection, subsite or list as per the project requirements, analysis of guids will be very useful to resolve many issues in SharePoint environments.
Here is my analysis regarding this as How to find out the ID/GUID of the above mentioned entities:
How to find out the ID of a site collection:
1. Open the Central Administration
2. Application Management
3. SharePoint Site Management
4. site collection quotas and locks
5. Select the appropriate site collection (Please refer the following screenshot) and you will get the ID of that specific site collection.
How to find out the ID of a subsite:
1. Save the current site as site template [.STP extension]
2. Save it to disk somewhere.
3. Now, navigate to that location and rename the file to .CAB extension.
4. Extract the CAB file and find the manifest.xml file.
5. Now, in the file check for the site ID/TemplateID string and get the value.
6. Navigate to end of this post for the TemplateID to Name mapping.
How to find out the List ID:
1. Navigate to the SharePoint list using the browser.
2. Select the Settings + List Settings menu command.
3. Copy the URL from the browser address bar into Notepad. It will look something like:
Delete everything before and including “List=”.
Change “%7B” to “{”
Change all “%2D” to “-“
Chnage “%7D” to “}”
You are now left with the Id:
{47F2F5E2-6474-4929-B986-64BBE801C97A}
List of MOSS 2007 Template ID Information
0 - GLOBAL (SetupPath=global) - "Global template"
1 - STS - "windows SharePoint Services Site", "Team Site", "Blank Site", "Document Workspace"
2 - MPS - "Basic Meeting Workspace", "Blank Meeting Workspace", "Decision Meeting Workspace", "Social Meeting Workspace", "Multipage Meeting Workspace"
3 - CENTRALADMIN - "Central Admin Site"
4 - WIKI - "Wiki Site"
7 - BDR - "Document Center"
9 - BLOG - "Blog"
20 - SPS (OBSOLETE) - "SharePoint Portal Server Site"
21 - SPSPERS - "SharePoint Portal Server Personal Space"
22 - SPSMSITE - "Personalization Site"
30 - SPSTOC (OBSOLETE) - "Contents area Template"
31 - SPSTOPIC (OBSOLETE) - "Topic area template"
32 - SPSNEWS (OBSOLETE) - "News area template"
33 - SPSNHOME (SubWebOnly) - "News Home template"
34 - SPSSITES - "Site Directory area template"
36 - SPSCOMMU (OBSOLETE) - "Community area template"
38 - SPSREPORTCENTER - "Report Center Site"
39 - CMSPUBLISHING (SetupPath=SiteTemplates\PUBLISHING) - "Publishing and Team Collaboration Site"
40 - OSRV (SetupPath=SiteTemplates\OSRV) - "Shared Services Administration Site"
47 - SPSPORTAL - "Corporate Intranet Site"
50 - SRCHCEN - "Search Center"
51 - PROFILES - "Profiles"
52 - BLANKINTERNETCONTAINER - "Internet Presence Web Site"
53 - BLANKINTERNET - "Publishing Site", "Press Releases Site", "Publishing Site"
54 - SPSMSITEHOST - "My Site Host"
90 - SRCHCENTERLITE (SetupPath=SiteTemplates\SRCHCENTERLITE) - "Search Center Lite"
6221 - PWA (SetupPath=SiteTemplates\PWA) - "Project Web Access Site"
6215 - PWS (SetupPath=SiteTemplates\PWS) - "Project Workspace"
14483 - OFFILE - "Records Repository", "Records Repository"
If you have any queries/questions regarding the above mentioned information then please let me know.
I would be more than happy to help you as well as resolves your issues J Thank you
I'm confused about how to find the GUID of a subsite. I have the manifest.xml, and I see templateid, which is '1'. But does this method tell me how to get the GUID of a subsite?
ReplyDeleteThanks
Here is your answer:
Delete--------------------
1.Save the current site as site template [.STP extension]
2.Save it to disk somewhere.
3.Now, navigate to that location and rename the file to .CAB extension.
4.Extract the CAB file and find the manifest.xml file.
5.Now, in the file check for the site ID/TemplateID string and get the value.
6.Navigate to end of this post for the TemplateID to Name mapping.
Please check and let me know in case of any doubts/queries regarding the above mentioned info. thanks for your patience
very nice blog...this mouse hover javascript..showing stars are
ReplyDeleteawesome...
Thank you :)
DeleteAwesome Dude
ReplyDeleteThank you Sir!!
DeleteSir,
ReplyDeleteI dont understand "Navigate to end of this post for the Template ID to name mapping" . can u explain this please?
In the post, i have mentioned the list of template ID information. Once you get that template id from the CAB then you need to check in that list to find out the template name. Hope this is clear one. in case of any further doubts/queries then please feel free to ask, Thanks again!
DeleteHere is another quick way to see the Site Template ID in SP2007.
ReplyDelete- Save site as template (.stp)
- Navigate to Site Template Gallery (Top level Site)
- Modify the default view to include Site Definition ID column. That will display a number, that number is the Site TemplateID.
Also see the list of Fab 40 template ID's on this site:
http://bramdejager.wordpress.com/2012/04/13/hide-fabulous-40-templates/
Scroll down the page till you see an XML code example. It has the Teplate ID's and names of the site templates.
Not sure if I'm missing something obvious but where is the screenshot from point 5 under the site collection ID topic?
ReplyDeleteIt says "(Please refer the following screenshot) and you will get the ID of that specific site collection.)
seems to be missing the screenshot somehow or the link to it ?
thanks