Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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.