I’ve come across some strange behaviors with lists and searches and I’ve narrowed it down to permissions issues.
I have a lot of unnecessary custom permissions and would like to remove them all and start over. How can I accomplish this? Thousands of pages, don’t want to do this manually.
Hi, you could use queries to locate all pages containing xobjects of type XWiki.XWikiRights and remove them programatically. Note that this would also remove default permissions set on some spaces.
To remove XWiki.XWikiRights xobjects maybe you can adapt my snippets
Edit these variables:
#set($className='XWiki.Notifications.Code.NotificationFilterPreferenceClass')
#set($hql = "select obj.name from BaseObject obj where obj.className='XWiki.XWikiUsers'")
Thanks everybody. I will do a good backup today and will try programmatically removing the XWiki.XWikiRights xobjects. I was a little afraid that this might affect my admin panel and AppWithinMinutes classes (and there are many) but nothing ventured nothing gained.