Sharepoint 2007 Userlist custom property
I have a custom event handler on a wiki page, which should add a Tag to a custom colo开发者_JS百科umn which I attached to the Users List.
The problem is how can I obtain a reference to the List in a event. It doesn't seem to be in theProfile
of the profile manager and accessing it with Spweb.Lists["Userinformationlist"]
gives me an error for non Admin Users.
Thanks for any advice
You can use SPSecurity.RunWithElevatedPrivileges
, check this out: Elegant SPSite Elevation
精彩评论