Visigo / SharePointFBAPack

The SharePoint FBA Pack for SharePoint 2010, 2013, 2016 & 2019. Web parts and tools to manage your SharePoint forms based authentication users.
https://www.visigo.com/products/sharepoint-fba-pack
35 stars 14 forks source link

Change permissions required to access FBA Management pages #135

Open ccoulson opened 7 years ago

ccoulson commented 7 years ago

ccoulson[CodePlex]
Limit to users who have permissions to manage users/permissions.

We recently had a project come up with the requirement that the business owners of the site should be able to add / delete / update users. To provide this, I made some customizations to the FBA pack for sharepoint 2013 which have been deployed in our production farm to allow users with the quotmanage permissionsquot right to be able to use the management pack screens. In order to provide this right to the users, I modified the default SP site owners group to include the quotmanage permissionsquot right.

I made the following changes to the FBA pack code: -Customized user management screens to allow users with “Manage Permissions” right to make changes to FBA users. Following files override RequireSiteAdministrator return false and RightsRequired return Microsoft.SharePoint.SPBasePermissions.ManagePermissions for the following pages --UserDisp.aspx.cs --UserEdit.aspx.cs --UserNew.aspx.cs --UserDelete.aspx.cs

-Customized UserEdit.aspx.cs to call “SPUser.Update()” with elevated privileges -Customized FBAMenus elements.xml to show site settings gt users and permissions gt FBA User Management item to users with “Manage Permissions” right

Completed customizations are in attached zip file. Simcoe.SharePoint.FormsBasedAuthentication.zip

ccoulson commented 7 years ago

csc077[CodePlex]
As discussed, please find customizations to allow users with manage permissions rights to manage FBA users based off v1.3.4