SPContext.Current.Web.CurrentUser returns misleading value

后端 未结 5 1738
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 02:02

I\'m trying to find out current user name for my sharepoint application. There are more that one way how to do this. However the sharepoint way returns misleading value.

5条回答
  •  半阙折子戏
    2021-01-03 02:29

    This is expected if the user is the application pool account running the current web application.
    BTW, it's supposed to be the same name as displayed in the welcome control (upper left control)

提交回复
热议问题