摘要:
有时候我们需要获取到当前登录的用户名,但是如果是系统管理员的话(domain\mossadmin),获取到的用户名是sharepoint\system,这个肯定不是我们想要的,我们怎么能够获取到真实的登陆名呢。 我只找到了下面一种办法,基本满足我的需要。 SPSite site = SPContext.Current.Site; SPServiceContext context = SPServiceContext.GetContext(site); UserProfileManager d = new UserProfileManager(context); U... 阅读全文
posted @ 2013-03-28 14:53
qiumc
阅读(242)
评论(0)
推荐(0)

浙公网安备 33010602011771号