Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (SPSite site = new SPSite("siteurl"))
- {
- SPServiceContext context = SPServiceContext.GetContext(site);
- UserProfileManager profileManager = new UserProfileManager(context);
- userprofile = profileManager.GetUserProfile(domainAccount);
- if (this.userprofile["SPS-JobTitle"] != null)
- {
- jobtitle = Convert.ToString(this.userprofile["SPS-JobTitle"].Value);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment