Why are my SharePoint Groups drop-down disabled?
This was an interesting issue. The problem a customer reported was that when they wanted to add a user to a SharePoint Group, the "Add users to a SharePoint group" drop-down was disabled. On investigation, it was found the customer was creating a web application and a site collection "on-the-fly", through SharePoint object model code. They were also creating their custom SharePoint groups that were derived from default groups. However, they are not able to assign a user to their groups.
If you are wondering what I am talking about in the above paragraph, here's a screenshot that I believe will be more descriptive of the problem:
The red rectangle is the one to note. That's the drop-down, which was not available for administrators to select and was grayed out! The customer was doing everything right here. Create web application, create a top-level site collection and create SharePoint groups (there were few instances where customers had a misconception that creating a web application/site collection via object model code would create the default groups automatically - well, that's not actually the case. I mean it would be good to have that feature, but sadly it isn't there. So, we have to create the user groups manually via code), every step is appropriate.
On further investigation, I noticed that the "AssociatedGroup" property was not defined in customer's code. Below is the code snippet that corrected the problem.
Again the red rectangle above, shows how to utilize the "AssociatedGroup" property. Setting this property as shown resolved this issue for the customer and they were able to assign users to SharePoint Groups.
Comments
Anonymous
July 07, 2008
PingBack from http://blog.a-foton.ru/2008/07/why-are-my-sharepoint-groups-drop-down-disabled/Anonymous
July 08, 2008
Hey Sridhar, Great post - bookmarked for future reference! Regards, ThomasAnonymous
August 12, 2008
You seem to be the only person in the WWW that has seen this issue. Have you any idea how the same issue would occur after creating a sub-site via the GUI with unique permissions? The drop-down is disabled at the parent level now.Anonymous
August 12, 2008
Hi AB, I wasn't able to replicate the issue you mentioned. Tried by both reusing parent groups and creating unique groups for visitors, members and owners when creating sub site. Is there any specific steps you follow? And are you able to replicate it at multiple web application/site collections? Cheers, SridharAnonymous
April 02, 2009
Thanks for the help! You may also want to try: oSite.RootWeb.AssociatedGroup.Add(group) if you want all of the newly added groups to appearAnonymous
August 26, 2013
Related link zoshaikh.wordpress.com/.../unable-to-add-users-to-a-group-sharepoint-permissions