UserProfileServices Web Service and Adding Links to SharePoint Profile

I really like the MyLinks feature in MOSS. Its one of the Personalization features that really comes in handy for me as I sign into different computers around campus giving demos or presentations. A few weeks ago I posted an article about a t-sql query I have for listing out all of the MyLinks stored in the Shared Service Provider’s database. [Blog Post – Sharepoint MyLinks Listing.html] Up until very recently I hadn’t found a way to programatically add links, but that changed while I was doing some work developing a custom web part that interacts with the User Profiles. One little web service call opened up a whole new group of possabilities.

Userprofileservice – http:///_vti_bin/userprofileservice.asmx

On top of all of the regular methods available for interacting with the user’s profile, it also includes a simple method for adding a link.

UserProfiles.AddLink(AccountName, Title, URL, Group, Privacy Level)

This would make it possible to move links from one SSP to another in the case where you need to rebuild it, or in large deployments with multiple SSPs this can be used for synchronizing links between SSPs.

Another interesting use would be to develop a web part or user control that would let users add links from within a page. Many don’t think about the feature since the MyLinks menu is in the upper right corner of the screen. The user control would let users also link to items from other applications outside of the SharePoint farm. While this isn’t as feature rich as a tool like Delicious, it is useful and secure for internal data.

Tags: ,

Leave a Comment