Tagged Questions
5
votes
3answers
285 views
How to get two User Profiles service application using C#?
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 ...
1
vote
1answer
607 views
Trying to get user's manager: Getting SPServiceContext with SiteSubscriptionId of {00000000-0000-0000-0000-000000000000}
I am trying to get a user's manager with this code:
SPSecurity.RunWithElevatedPriviliges(delegate
{
SPSite site = new SPSite(SPContext.Current.Site.Url);
SPServiceContext context = ...