2

How can I find the list of colleagues/Team-members for a SharePoint 2010 user? and how can i find the scope for a specific user profile property (eg..birthday--->Everyone, Interest--->My Team)which user has set on his Mysite?

1 Answer 1

2

The UserProfile class has a Colleagues property that contains a ColleagueManager.

MSDN has some examples on how to work with the new User Profile classes and UserProfileManager here.

1
  • $UserCM = $usrprofile.Colleagues; ($UserCM.GetItems() | where {$_.Group -eq "Peers" } ) $usrprofile["HomePhone"].Privacy May 6, 2011 at 15:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.