none
My Site Person.aspx Colleagues webpart, updating the underlying list for a user. RRS feed

  • Question

  • Hi,

    Is there any way to manage a users colleagues list for them? When the user is intialy imported from the AD this list is calculated from their Organization Hierarchy. If a user changes department this list retains their old colleagues list.

    I know the user can update this list themself however we would juts like to reset it for them. I can't find anything under personalisation services in our SSP to allow us to do this?

    I don't want to delete the user profile! Can anyone help?

    Cheers Dave

    • Moved by Mike Walsh FIN Tuesday, June 8, 2010 3:55 PM MySite q so Social Computing forum (From:SharePoint - Setup, Upgrade, Administration and Operation (pre-SharePoint 2010))
    Tuesday, June 8, 2010 2:44 PM

Answers

  • I haven't seen where this is built into the system.  I think this might be one of those things where different people have different ways they would want or expect it to function.  My interpretation is that if I switch departments, or companies for that matter, my old colleagues are still colleagues.

    If you want to do this, it can be done very simply with .net code in a custom form.  The User Profile Web Service exposes two methods, one to remove all colleagues and one that can remove one at a time. 

    The web service is available at: http://<Site>/_vti_bin/UserProfileService.asmx

    If you wanted to reset the colleagues as you mentioned you would just need to call RemoveAllColleagues(accountName)

    If you wanted to remove a specific colleague you would need to call RemoveColleague(accountName, colleagueAccountName)

     

     


    SharePoint MVP | Developer | Administrator | Speaker-- Twitter -- Blog - http://nextconnect.blogspot.com
    • Marked as answer by David Cornall Wednesday, June 9, 2010 6:35 AM
    Wednesday, June 9, 2010 3:00 AM

All replies

  • I haven't seen where this is built into the system.  I think this might be one of those things where different people have different ways they would want or expect it to function.  My interpretation is that if I switch departments, or companies for that matter, my old colleagues are still colleagues.

    If you want to do this, it can be done very simply with .net code in a custom form.  The User Profile Web Service exposes two methods, one to remove all colleagues and one that can remove one at a time. 

    The web service is available at: http://<Site>/_vti_bin/UserProfileService.asmx

    If you wanted to reset the colleagues as you mentioned you would just need to call RemoveAllColleagues(accountName)

    If you wanted to remove a specific colleague you would need to call RemoveColleague(accountName, colleagueAccountName)

     

     


    SharePoint MVP | Developer | Administrator | Speaker-- Twitter -- Blog - http://nextconnect.blogspot.com
    • Marked as answer by David Cornall Wednesday, June 9, 2010 6:35 AM
    Wednesday, June 9, 2010 3:00 AM
  • Thanks. That's perfect :-)

    It's just our users and companies definition of colleague is people currently in your team it is causing confusion that people from previous teams stay in the list!

    I do however agree with your definition!

    Cheers Dave

    Wednesday, June 9, 2010 6:37 AM