Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I was asked to investigate if a custom "Grant Permissions" page can be built in Sharepoint 2010. It should:

  1. Allow admin to set users for each group (visitors/members/owners) in one page. Currently such page comes up only on creating a site with unique permissions. But the planned custom page should be accessible for each list type too.

2.Inheritance should be broken by default. (Can be handled using Server Object Model?)

Please let me know if it's achievable

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It's achievable with custom development. Both the Vistors/Members/Owners groups and inheritance can be set through code. You want use:

SPWeb.BreakRoleInheritance(); and SPWeb.CreateDefaultAssociatedGroups(), and then add the users/groups you need to to those roles.

Note that the second method has a bug, and doesn't create the visitors group correctly. There is a fix (and good example of part of what you're trying to do) here.

I did a similar thing in SharePoint 2007. See http://www.novolocus.com/2009/09/16/how-i-simplified-the-users-and-group-ui-intro/ for information on building the UI.

share|improve this answer

Your Answer

 
discard

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.