Search code examples
sharepointmoss

How to create an SPSite object with the token from the SSP app pool user in sharepoint?


How to create an SPSite object with the token from the SSP app pool user?


Solution

  • I think what you are asking for is to elevate the current context to the highest level.

    You can achieve this by Running Commands with Elevated Privileges in Windows SharePoint Services 3.0
    See also SPSecurity.RunWithElevatedPrivileges Method

    There shouldn't be a need to mess with tokens.