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'm trying to get a specific group out of the group collection of the current SPContext. The current SPContext is hosted in a Application Page, which is displayed in a Modal Dialog.

The web instance is the right one but I'm missing some SPGroups in the SPGroupCollection.

Is there known an issue? In which way I can solve the problem?

Greetz, Hagen

share|improve this question
up vote 0 down vote accepted

Your group has probably no specific permissions on the current SPWeb. Try the SPWeb.SiteGroups instead of SPWeb.Groups. You're gonna access all the site collection groups in that way. Take a look at that link :

share|improve this answer
Thanks, works fine! – hagenstrahl Sep 23 '12 at 12:53

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.