sharepoint-userprofile


How to use selected User-profile service in SharePoint

Deadly 提交于 2020-01-13 07:25:49
问题 Basically I am making a timer job to send a birthdayWish email fetched from SharePoint userprofile service . But problem is I have multiple userprofile services on server. like 1). userprofile service1 2). userprofile service2 3). userprofile service3 4). userprofile service4 So how to use 2nd user-profile service. Here's some code, that I did: SPServiceContext oServiceContext = SPServiceContext.GetContext(SPServiceApplicationProxyGroup.Default, SPSiteSubscriptionIdentifier.Default);

Using Reflection to set the value of an indexed property

情到浓时终转凉″ 提交于 2019-12-10 23:39:36
问题 I am try to replicate the following c# code using reflection: UserProfileManager userProfileManager = new UserProfileManager(ServerContextGoesHere); UserProfile userProfile = null; userProfile = userProfileManager.GetUserProfile(@"somedomain\someuser"); userProfile["PictureUrl"].Value = "This is where I want to update the value using reflection!"; userProfile.Commit(); Using reflection I can get everything to work except for the line where I'm trying to set the "PictureUrl" indexed property

How to use selected User-profile service in SharePoint

时光毁灭记忆、已成空白 提交于 2019-12-04 22:43:15
Basically I am making a timer job to send a birthdayWish email fetched from SharePoint userprofile service . But problem is I have multiple userprofile services on server. like 1). userprofile service1 2). userprofile service2 3). userprofile service3 4). userprofile service4 So how to use 2nd user-profile service. Here's some code, that I did: SPServiceContext oServiceContext = SPServiceContext.GetContext(SPServiceApplicationProxyGroup.Default, SPSiteSubscriptionIdentifier.Default); UserProfileManager oProfileManager = new UserProfileManager(oServiceContext); So here in

工具导航Map