SharePoint Site permissions STSADM extension

For the SharePoint developer’s group I run in NYC I created a quick STSADM extension that outputs all of site, subsite, list, and list item permissions for a given SharePoint site.

By piping this output into a file you can create a baseline to compare to at a later date with something like winmerge. Thus you have a simply way to verify your site permissions should you need to. The idea was to illustrate how easy it is to create extension for STSADM, but I ended up with a useful utility in the process.

Code here.

Also, if you look at the code you’ll see that there is in fact an interface that all of the “Permissionable” objects implement (ISecurableObject) and as a result the methods for retrieving their Roles and Rights can be generic. Contrary to my earlier post here.

If you have any questions or are interested in attending the next meeting of the New York SharePoint Developer’s Group send me an email at john.bender at hensongroup.com.

Enjoy!

Leave a Reply