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

StackOverflow https://stackoverflow.com/questions/9472139

  •  13-11-2019
  •  | 
  •  

문제

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

도움이 되었습니까?

해결책

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.

다른 팁

The quickest way, if it's a single operation, would be to launch a command prompt with the identity of that application pool account (why the SSP one ?) and launch a stsadm -o createsite ... command. Your site will thus be created assuming that the SSP account has enough right to do so (which I guess will be the case, a farm account might be relevant at that level)

Do you want to allow specific user to spawn new site collection from another site collection ? A self service site creation portal might be better in that case.

Kindly.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top