Is it possible to get two User Profiles service application
- 1). User profile service1
- 2). User profile service2
I have some code which only fetches the Ist User profile service application but not the second one. How can I access the 2nd User profile Service application using code?
SPServiceContext oServiceContext = SPServiceContext.GetContext(SPServiceApplicationProxyGroup.Default, SPSiteSubscriptionIdentifier.Default);
UserProfileManager oProfileManager = new UserProfileManager(oServiceContext);
Note: For some reason both User Profiles Service applications are provision on same SharePoint farm.
Note: No out of the box sync is used for User profiles.