{"id":1021,"date":"2010-05-26T16:25:01","date_gmt":"2010-05-26T21:25:01","guid":{"rendered":"http:\/\/blogs.devhorizon.com\/reza\/?p=1021"},"modified":"2010-05-28T22:56:18","modified_gmt":"2010-05-29T03:56:18","slug":"note-to-self-the-difference-between-spwebsitegroups-spwebgroups","status":"publish","type":"post","link":"https:\/\/blogs.devhorizon.com\/reza\/2010\/05\/26\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\/","title":{"rendered":"Note to Self: The Difference between SPWeb.SiteGroups &#038; SPWeb.Groups"},"content":{"rendered":"<p>This came up a few times and I seem to forget it after a while:<\/p>\n<ol>\n<li><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/microsoft.sharepoint.spweb.sitegroups.aspx\">SPWeb.SiteGroups<\/a>: As the documentation says this gets you a collection of cross-site groups for the site collection.\u00a0These groups are cross-site, because they can be used in more than one SPWeb object in the site collection.<\/li>\n<li><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/microsoft.sharepoint.spweb.groups.aspx\">SPWeb.Groups<\/a>: This returns a subset of the groups above (SPWeb.SiteGroups) that are used in the specified SPWeb object. The word &#8220;used&#8221; is important to note here. These are the groups that are referenced somewhere in the site. For example, in a securable object such as an SPList or SPListItem with broken inheritance.<\/li>\n<\/ol>\n<p>So, the logical conclusion is that:\u00a0 SPWeb.SiteGroups &gt;= SPWeb.Groups.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This came up a few times and I seem to forget it after a while: SPWeb.SiteGroups: As the documentation says this gets you a collection of cross-site groups for the site collection.\u00a0These groups are cross-site, because they can be used in more than one SPWeb object in the site collection. SPWeb.Groups: This returns a subset [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,36],"tags":[],"class_list":["post-1021","post","type-post","status-publish","format-standard","hentry","category-moss-2007","category-sharepoint-2010"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Note to Self: The Difference between SPWeb.SiteGroups &amp; SPWeb.Groups - Reza Alirezaei&#039;s Blog %<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blogs.devhorizon.com\/reza\/2010\/05\/26\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Reza Alirezaei\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2010\\\/05\\\/26\\\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2010\\\/05\\\/26\\\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\\\/\"},\"author\":{\"name\":\"Reza Alirezaei\",\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/#\\\/schema\\\/person\\\/cdbb24d283697a65951cb4a14e474938\"},\"headline\":\"Note to Self: The Difference between SPWeb.SiteGroups &#038; SPWeb.Groups\",\"datePublished\":\"2010-05-26T21:25:01+00:00\",\"dateModified\":\"2010-05-29T03:56:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2010\\\/05\\\/26\\\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\\\/\"},\"wordCount\":127,\"commentCount\":2,\"articleSection\":[\"MOSS 2007\",\"SharePoint 2010\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2010\\\/05\\\/26\\\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2010\\\/05\\\/26\\\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\\\/\",\"url\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2010\\\/05\\\/26\\\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\\\/\",\"name\":\"Note to Self: The Difference between SPWeb.SiteGroups & SPWeb.Groups - Reza Alirezaei's Blog %\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/#website\"},\"datePublished\":\"2010-05-26T21:25:01+00:00\",\"dateModified\":\"2010-05-29T03:56:18+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/#\\\/schema\\\/person\\\/cdbb24d283697a65951cb4a14e474938\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2010\\\/05\\\/26\\\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/#website\",\"url\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/\",\"name\":\"Reza Alirezaei's Blog\",\"description\":\"Blogging from the field!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/#\\\/schema\\\/person\\\/cdbb24d283697a65951cb4a14e474938\",\"name\":\"Reza Alirezaei\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g\",\"caption\":\"Reza Alirezaei\"},\"url\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/author\\\/rezaa\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Note to Self: The Difference between SPWeb.SiteGroups & SPWeb.Groups - Reza Alirezaei's Blog %","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blogs.devhorizon.com\/reza\/2010\/05\/26\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\/","twitter_misc":{"Written by":"Reza Alirezaei","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blogs.devhorizon.com\/reza\/2010\/05\/26\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\/#article","isPartOf":{"@id":"https:\/\/blogs.devhorizon.com\/reza\/2010\/05\/26\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\/"},"author":{"name":"Reza Alirezaei","@id":"https:\/\/blogs.devhorizon.com\/reza\/#\/schema\/person\/cdbb24d283697a65951cb4a14e474938"},"headline":"Note to Self: The Difference between SPWeb.SiteGroups &#038; SPWeb.Groups","datePublished":"2010-05-26T21:25:01+00:00","dateModified":"2010-05-29T03:56:18+00:00","mainEntityOfPage":{"@id":"https:\/\/blogs.devhorizon.com\/reza\/2010\/05\/26\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\/"},"wordCount":127,"commentCount":2,"articleSection":["MOSS 2007","SharePoint 2010"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blogs.devhorizon.com\/reza\/2010\/05\/26\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blogs.devhorizon.com\/reza\/2010\/05\/26\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\/","url":"https:\/\/blogs.devhorizon.com\/reza\/2010\/05\/26\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\/","name":"Note to Self: The Difference between SPWeb.SiteGroups & SPWeb.Groups - Reza Alirezaei's Blog %","isPartOf":{"@id":"https:\/\/blogs.devhorizon.com\/reza\/#website"},"datePublished":"2010-05-26T21:25:01+00:00","dateModified":"2010-05-29T03:56:18+00:00","author":{"@id":"https:\/\/blogs.devhorizon.com\/reza\/#\/schema\/person\/cdbb24d283697a65951cb4a14e474938"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blogs.devhorizon.com\/reza\/2010\/05\/26\/note-to-self-the-difference-between-spwebsitegroups-spwebgroups\/"]}]},{"@type":"WebSite","@id":"https:\/\/blogs.devhorizon.com\/reza\/#website","url":"https:\/\/blogs.devhorizon.com\/reza\/","name":"Reza Alirezaei's Blog","description":"Blogging from the field!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blogs.devhorizon.com\/reza\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blogs.devhorizon.com\/reza\/#\/schema\/person\/cdbb24d283697a65951cb4a14e474938","name":"Reza Alirezaei","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g","caption":"Reza Alirezaei"},"url":"https:\/\/blogs.devhorizon.com\/reza\/author\/rezaa\/"}]}},"_links":{"self":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/1021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/comments?post=1021"}],"version-history":[{"count":0,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/1021\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/media?parent=1021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/categories?post=1021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/tags?post=1021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}