Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.