Hi
I create Console application which do some SharePoint server task. application code used SharePoint server object model to do the task . here is my code
SPSecurity.RunWithElevatedPrivileges(delegate(){
SPSite sitecoll = new SPSite(strUrl);
SPWeb web = sitecoll.OpenWeb();
SPUser user = web.SiteUsers[strUname];
getUserProfile(user ,web );
});
So i wondering about function getUserProfile , is it worked with elevated privileges or with function of getUserProfile i need to add SPSecurity.RunWithElevatedPrivileges(delegate() { ); for working with elevated privileges .