2
Vote

Delete properties after changing groups

description

Hi Suchii,
like others, I have the problem that after a change to the group permissions the configured views does not work anymore. I am not a developer, but I recognized that the assignment of groups to view permissions is written to persistent web properties. Subsequent changes by users to the groups may not be intercepted by the feature. So, the properties contain invalid values after then. When you deinstall the feature it does not help because the properties are not deleted.
 
workarround:
 
Delete the properties variables with Powershell and the views will work and set the list view permissions again.
 
Best regard
 
NPO

comments

npo wrote Jul 23, 2009 at 8:49 PM

How to delete web property with Powershell

  1. Starting Powershell
  2. Registering SharePoint class
set-executionpolicy RemoteSigned
[System.Reflection.Assembly]:: Load ( "Microsoft.SharePoint,
Version = 12.0.0.0, Culture = neutral, PublicKeyToken = 71e9bce111e9429c ")
  1. Creating objects $Site and $Web
$SiteName = "http://yourwebsitecollection/" $WebName = "yourwebsite" $Site = new-object Microsoft.SharePoint.SPSite ($SiteName);
$Web = $Site.AllWebs [$WebName];
  1. Looking for property
$web.AllProperties.keys
$web.Properties.keys
  1. Deleting property (both types)
$key = "name of View permission keys"

$web.Properties.Remove ($key)
$web.AllProperties.Remove ($key)
$web.Properties.Update ();
$web.Update ();
  1. Done!

npo wrote Nov 3, 2009 at 11:33 AM

There is a great new solution to modifiy all sharepoint properties

http://pbs.codeplex.com

grosenbrock wrote Apr 5, 2010 at 5:56 PM

If you want a safer method then you can use SharePoint Designer (Site -> Site Settings -> Parameters) since you will only see custom property bags.

wrote Jul 15, 2010 at 8:17 PM

wrote Feb 14, 2013 at 6:49 PM