More specifically, if I have a site collection I can create groups while in the root site. I can also create groups while in the various subsites. But from browsing the available groups in the subsites, regardless of whether or not the subsite is inheriting permissions or has unique permissions, I get the feeling that any changes to the groups in the subsite will impact the rest of the collection.
So are all SharePoint groups attached to the site collection? The root site of the collection? or to the individual sites within the collection?
Edit:
I am asking the question because I need to map a SharePoint group name within a K2 Workflow. For reasons I do not fully understand, the K2 Workflow's SharePoint Group name resolution requires not only the K2 Security Label, but also a relevant site name prior to the group name. When using the K2 SmartObject for listing groups on the site, all the groups come back with names like this:
root site\group 1
root site\group 2
root site\group 3
subsite A\group 1
subsite A\group 2
subsite B\group 2
subsite B\group 3
The K2 SmartObject list shows the groups in many of the collection's sites. However, the groups do not appear in all sites. I created two nested sub-sites under an existing sub-site, then broke inheritance and created a new group in both sites. The new groups show up, prefaced by the site name for the root site and many of the first level sub-sites. However, I did not see them with their own site names. What rules does SharePoint follow when assigning names to groups?