Posts

Showing posts with the label Evaluate Credential

Credential while creating site in Share Point Portal

Call SPSecurity.CodeToRunElevated for executing CreateSite() method.This statement makes credential scope over Share Point server. exeample: SPSecurity.CodeToRunElevated elevatedGetSitesAndGroups = new SPSecurity.CodeToRunElevated(method which owns CreateSite method); SPSecurity.RunWithElevatedPrivileges(elevatedGetSitesAndGroups);