I am trying to write a utility to find/delete specific users and groups from a SharePoint site collection. At this point I'm using the SiteUsers
property of the SPWeb
class to do the job, but I'm wondering: why isn't there a similar property in the SPSite
class? This seems completely counter-intuitive to me (though at this point nothing about SharePoint surprises me anymore).
Is there a better way to do what I'm trying to do?
Related: http://stackoverflow.com/questions/329535/sharepoint-get-a-list-of-current-users