SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a SharePoint 2007 solution, that runs off FBA. I've created a new group called "Admin" and added all of my users who require administrative priviledges to this group.

During registration, I itterate all groups in SharePoint for the "Admin" group so I can e-mail them a notification of this new registration, but I keep hitting a "The group "Admin" does not exist in SharePoint." exception.

I've confirmed the existence of the group, unfortunately I cannot replicate this error on my local environment, just the deployed environment so cannot debug the process. I've deleted, and re-created the group, done an IIS reset and even stopped and started the Timer service.



share|improve this question
up vote 1 down vote accepted

How do You iterate through the groups? Using SiteGroups of the SPWeb instance? Have You tried oWeb.SiteGroups["Admin"]?

UPDATE: web.Groups gives You only groups for this specific web. Loop through web.SiteGroups to get all the groups in the site colletion. You can also get group directly by calling web.SiteGroups["YourGroupName"]

share|improve this answer
hi zavaz, i'm looping through each group in web.Groups? – JadedEric Aug 22 '11 at 9:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.