SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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.

share|improve this answer
    
$UserCM = $usrprofile.Colleagues; ($UserCM.GetItems() | where {$_.Group -eq "Peers" } ) $usrprofile["HomePhone"].Privacy – Karthikeyan May 6 '11 at 15:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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