开发者

SharePoint WebPart Impersonation problem

I want to render all WebParts on the Page in context of some other user which password is unknown. I'm SiteCollection Administrator. Solution like this

does not do the trick because there are some webparts like ListViewWebPart i can't modify and I can't inherit.

Best solution would be to write webPart which will modify context of all others, however I'm not sure how to ensure that webPart is rendered as first and how to modify the开发者_运维百科 context.

Do you think that global.asax might be useful in this situation?

Regards

Adam


If you don't have the user context available, and you don't know their password, how could you impersonate them? Being an administrator doesn't give you the power to trump the underlying security model or audit trail.


Hmm, the only way I could think of is modifying the compat.browser file so any call to the OOTB ListViewWebPart would be redirected to your own, derived CustomListViewWebPart. Still not sure if tyhat will do the trick though.


the problem is ListViewWebPart is sealed (as half of sharePoint classes :/)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜