is there a way to pass a parameter to the GetSubwebsForCurrentUser() function? I'm needing to get the subwebs for specific users - not the current user. Any help would be appreciated. Thanks,
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
You can impersonate a particular user, but obviously this involves re-creation of SPSite and SPWeb objects. Thus please use this approach carefully: calling the code from a loop can cause unwanted performance leak.
More details and explanations here: http://blackninjasoftware.com/2009/04/09/how-to-programmatically-impersonate-users-in-sharepoint/ |
|||||
|
|
You can impersonate other users when opening an SPSite (and thus a web below it)
But I would not guarantee the performance if you are looping through many users.. |
|||
|
|