MOSSUserProfile.UserProfileService ups = new MOSSUserProfile.UserProfileService();
ups.Credentials = CredentialCache.DefaultNetworkCredentials;
MOSSUserProfile.PropertyData[] props = ups.GetUserProfileByName(K2.ProcessInstance.Originator.Name);
string str = "";
int counter = -1;
foreach (MOSSUserProfile.PropertyData p in props)
{
counter++;
str += "(" + counter + ")" + p.Name + ": ";
if (p.Values != null && p.Values.Length > 0) str += p.Values[0].Value.ToString() + ";";
else str += ";";
}
Output:
(0)UserProfile_GUID: 22e44299-1d1b-4a30-967e-3b041d717a1f;
(1)AccountName: WORLD\a_fkf;
(2)FirstName: a_fkf;
(3)LastName: ;
(4)PreferredName: a_fkf;
(5)WorkPhone: ;
(6)Office: ;
(7)Department: ;
(8)Title: ;
(9)Manager: ;
(10)AboutMe: ;
(11)PersonalSpace: ;
(12)PictureURL: ;
(13)UserName: a_fkf;
(14)QuickLinks: ;
(15)WebSite: ;
(16)PublicSiteRedirect: http://mdevsp_fkf:81/personal/a_fkf/;
(17)SPS-Dotted-line: ;
(18)SPS-Peers: ;
(19)SPS-Responsibility: ;
(20)SPS-Skills: ;
(21)SPS-PastProjects: ;
(22)SPS-Interests: ;
(23)SPS-School: ;
(24)SPS-SipAddress: ;
(25)SPS-Birthday: ;
(26)SPS-MySiteUpgrade: ;
(27)SPS-ProxyAddresses: ;
(28)SPS-HireDate: ;
(29)SPS-ResourceAccountName: ;
(30)SPS-MasterAccountName: ;
(31)Assistant: ;
(32)WorkEmail: a_fkf@world.com;
(33)Fax: ;
No comments:
Post a Comment